Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 104.6 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 43.94 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1105, allocations: 46.62 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003673/0.1142, allocations: 1.878 MB / 328.5 MB, free: 3.012 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.1159, allocations: 0.952 MB / 329.4 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.059e-05/0.116, allocations: 3.938 kB / 329.4 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006395/0.1167, allocations: 147.7 kB / 329.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000263/0.117, allocations: 119.6 kB / 329.7 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.1174, allocations: 139.8 kB / 329.8 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.1177, allocations: 195.4 kB / 330 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1178, allocations: 25.55 kB / 330 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.1179, allocations: 79.62 kB / 330.1 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.1181, allocations: 83.55 kB / 330.2 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.221e-05/0.1181, allocations: 8 kB / 330.2 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.1183, allocations: 39.98 kB / 330.2 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.69e-05/0.1184, allocations: 43.88 kB / 330.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.267e-05/0.1185, allocations: 79.48 kB / 330.4 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.1187, allocations: 207.6 kB / 330.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.1188, allocations: 0 / 330.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1188, allocations: 0 / 330.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1188, allocations: 0 / 330.6 MB, free: 0.9023 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000942/0.1197, allocations: 0.5236 MB / 331.1 MB, free: 332 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.1198, allocations: 8.031 kB / 331.1 MB, free: 324 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.183e-05/0.1199, allocations: 20.66 kB / 331.1 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.1202, allocations: 258.8 kB / 331.4 MB, free: 0 / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.1203, allocations: 8.5 kB / 331.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.1203, allocations: 12.06 kB / 331.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.1205, allocations: 113.9 kB / 331.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1206, allocations: 0 / 331.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.619e-05/0.1207, allocations: 4 kB / 331.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1207, allocations: 4 kB / 331.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.1208, allocations: 47.91 kB / 331.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007773/0.1216, allocations: 0.6143 MB / 332.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.1219, allocations: 123.9 kB / 332.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.1221, allocations: 50.56 kB / 332.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.1221, allocations: 3.984 kB / 332.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002395/0.1223, allocations: 125.8 kB / 332.5 MB, free: 14.76 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.1224, allocations: 0 / 332.5 MB, free: 14.76 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005158/0.1229, allocations: 169.4 kB / 332.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.123, allocations: 136.5 kB / 332.8 MB, free: 14.42 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.1233, allocations: 284.9 kB / 333 MB, free: 14.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.1234, allocations: 33.69 kB / 333.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1235, allocations: 132.5 kB / 333.2 MB, free: 13.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.1235, allocations: 23.66 kB / 333.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.059e-05/0.1236, allocations: 33.7 kB / 333.3 MB, free: 13.9 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1238, allocations: 338.7 kB / 333.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.403e-05/0.1239, allocations: 31.98 kB / 333.6 MB, free: 13.53 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.124, allocations: 85.98 kB / 333.7 MB, free: 13.42 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.1242, allocations: 92.72 kB / 333.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1242, allocations: 4 kB / 333.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002888/0.1245, allocations: 145.3 kB / 333.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.1246, allocations: 7.984 kB / 333.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1246, allocations: 4 kB / 333.9 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.1246, allocations: 0 / 333.9 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.96e-05/0.1247, allocations: 19.88 kB / 334 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.1247, allocations: 4 kB / 334 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.1248, allocations: 19.92 kB / 334 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1249, allocations: 4 kB / 334 MB, free: 13.11 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002622/0.1251, allocations: 153.4 kB / 334.1 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.1252, allocations: 23.72 kB / 334.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.227e-05/0.1252, allocations: 25.7 kB / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1252, allocations: 0 / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.1253, allocations: 0 / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.1253, allocations: 7.938 kB / 334.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002624/0.1255, allocations: 237.5 kB / 334.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1256, allocations: 0 / 334.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.08e-05/0.1256, allocations: 11.94 kB / 334.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1256, allocations: 4 kB / 334.4 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.1256, allocations: 7.984 kB / 334.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.1256, allocations: 4 kB / 334.5 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1256, allocations: 0 / 334.5 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003908/0.126, allocations: 178.5 kB / 334.6 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.857e-05/0.1261, allocations: 92.92 kB / 334.7 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.1262, allocations: 15.92 kB / 334.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-05/0.1263, allocations: 12 kB / 334.7 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-05/0.1263, allocations: 19.91 kB / 334.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1264, allocations: 4 kB / 334.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002041/0.1266, allocations: 212.5 kB / 335 MB, free: 12.02 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1266, allocations: 0 / 335 MB, free: 12.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002747/0.1269, allocations: 35.88 kB / 335 MB, free: 11.98 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001023/0.1279, allocations: 417.9 kB / 335.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002762/0.1282, allocations: 95.84 kB / 335.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1282, allocations: 3.938 kB / 335.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.1283, allocations: 55.91 kB / 335.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.1287, allocations: 44.41 kB / 335.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007571/0.1295, allocations: 386.9 kB / 336 MB, free: 10.97 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006087/0.1301, allocations: 0.7283 MB / 336.7 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.032e-05/0.1302, allocations: 25.53 kB / 336.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.59e-05/0.1303, allocations: 23.44 kB / 336.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1303, allocations: 3.938 kB / 336.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of Templates: time 0.007253/0.1375, allocations: 2.561 MB / 339.3 MB, free: 7.605 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches