Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.062/1.062, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 3.938 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.614e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.009227/0.009253, allocations: 3.986 MB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006294/0.01555, allocations: 1.581 MB / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004005/0.01595, allocations: 11.94 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007857/0.01673, allocations: 262.6 kB / 278.8 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007518/0.01749, allocations: 317.9 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006435/0.01813, allocations: 271.2 kB / 279.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007832/0.01891, allocations: 0.7473 MB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.01915, allocations: 109.5 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005819/0.01974, allocations: 411 kB / 280.7 MB, free: 9.828 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.02005, allocations: 247.3 kB / 280.9 MB, free: 9.586 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.293e-05/0.02012, allocations: 52 kB / 280.9 MB, free: 9.535 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002208/0.02034, allocations: 99.89 kB / 281 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.02047, allocations: 159.4 kB / 281.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.02067, allocations: 199.5 kB / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006685/0.02134, allocations: 0.5098 MB / 281.9 MB, free: 8.574 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.02134, allocations: 3.984 kB / 281.9 MB, free: 8.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.02134, allocations: 4 kB / 281.9 MB, free: 8.566 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.02135, allocations: 0 / 281.9 MB, free: 8.566 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001277/0.02263, allocations: 0.9886 MB / 282.9 MB, free: 7.535 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.02266, allocations: 8.031 kB / 282.9 MB, free: 7.527 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002272/0.02289, allocations: 112.5 kB / 283 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.02337, allocations: 375 kB / 283.4 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/0.0234, allocations: 29.38 kB / 283.4 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.806e-05/0.02345, allocations: 40.38 kB / 283.5 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005572/0.02401, allocations: 462.2 kB / 283.9 MB, free: 6.449 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.02402, allocations: 7.875 kB / 283.9 MB, free: 6.441 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.02406, allocations: 16 kB / 283.9 MB, free: 6.426 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.02407, allocations: 12 kB / 283.9 MB, free: 6.414 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.02441, allocations: 173.8 kB / 284.1 MB, free: 6.246 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.02618, allocations: 1.676 MB / 285.8 MB, free: 4.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00047/0.02665, allocations: 291.5 kB / 286.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.02683, allocations: 111.6 kB / 286.2 MB, free: 4.074 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.02686, allocations: 7.75 kB / 286.2 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003403/0.0272, allocations: 340.9 kB / 286.5 MB, free: 3.672 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.974e-06/0.0272, allocations: 3.938 kB / 286.5 MB, free: 3.668 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001312/0.02851, allocations: 0.599 MB / 287.1 MB, free: 3.047 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.02858, allocations: 162.2 kB / 287.3 MB, free: 2.852 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004204/0.029, allocations: 466.6 kB / 287.7 MB, free: 2.383 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.02903, allocations: 33.7 kB / 287.8 MB, free: 2.344 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.02921, allocations: 307.4 kB / 288.1 MB, free: 2.039 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.321e-05/0.02929, allocations: 127 kB / 288.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.0294, allocations: 83.81 kB / 288.3 MB, free: 1.824 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.02957, allocations: 0.5352 MB / 288.8 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.02969, allocations: 68.95 kB / 288.9 MB, free: 1.211 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.02987, allocations: 303 kB / 289.2 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.03017, allocations: 192.7 kB / 289.4 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.03017, allocations: 4.062 kB / 289.4 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006688/0.03084, allocations: 376.4 kB / 289.7 MB, free: 248 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.03086, allocations: 8 kB / 289.7 MB, free: 240 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.03087, allocations: 0 / 289.7 MB, free: 240 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004453/0.03132, allocations: 142.7 kB / 289.9 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.03151, allocations: 47.97 kB / 289.9 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003988/0.0355, allocations: 8.236 MB / 298.2 MB, free: 7.316 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.0357, allocations: 47.77 kB / 298.2 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.03572, allocations: 24.08 kB / 298.2 MB, free: 7.246 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001599/0.03588, allocations: 182.5 kB / 298.4 MB, free: 7.059 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.03594, allocations: 63.67 kB / 298.5 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005277/0.03647, allocations: 408.5 kB / 298.9 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.03648, allocations: 4 kB / 298.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.03648, allocations: 3.938 kB / 298.9 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.03648, allocations: 4 kB / 298.9 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003094/0.03679, allocations: 356.2 kB / 299.2 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.03679, allocations: 0 / 299.2 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.007e-05/0.03687, allocations: 28.11 kB / 299.3 MB, free: 6.152 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002288/0.0371, allocations: 146.5 kB / 299.4 MB, free: 5.992 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.03712, allocations: 8 kB / 299.4 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1092/0.1463, allocations: 7.771 MB / 307.2 MB, free: 34.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1463, allocations: 5 kB / 307.2 MB, free: 34.59 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006413/0.1469, allocations: 460.4 kB / 307.6 MB, free: 34.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.1471, allocations: 84.23 kB / 307.7 MB, free: 34.46 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.865e-05/0.1471, allocations: 11.25 kB / 307.7 MB, free: 34.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.1472, allocations: 26.14 kB / 307.8 MB, free: 34.46 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.1474, allocations: 54.2 kB / 307.8 MB, free: 34.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.1474, allocations: 14 kB / 307.8 MB, free: 34.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002317/0.1476, allocations: 316.2 kB / 308.1 MB, free: 34.33 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1476, allocations: 1.125 kB / 308.1 MB, free: 34.33 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005859/0.1482, allocations: 172.7 kB / 308.3 MB, free: 34.33 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008265/0.149, allocations: 412.9 kB / 308.7 MB, free: 34.22 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000662/0.1497, allocations: 0.9332 MB / 309.6 MB, free: 33.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1497, allocations: 1.656 kB / 309.6 MB, free: 33.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003628/0.1501, allocations: 0.8311 MB / 310.5 MB, free: 32.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.1504, allocations: 116.6 kB / 310.6 MB, free: 32.83 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.1519, allocations: 0.9071 MB / 311.5 MB, free: 32.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.1521, allocations: 135.2 kB / 311.6 MB, free: 32.34 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001865/0.1523, allocations: 46.55 kB / 311.7 MB, free: 32.33 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.443e-05/0.1524, allocations: 34.66 kB / 311.7 MB, free: 32.33 MB / 282.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1524, allocations: 0 / 311.7 MB, free: 32.33 MB / 282.7 MB Notification: Performance of Templates: time 0.01618/0.1685, allocations: 9.669 MB / 321.4 MB, free: 29.56 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0592633029446006]