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.001249/0.001249, allocations: 96.27 kB / 16.93 MB, free: 5.984 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.001241/0.001242, allocations: 179.2 kB / 17.82 MB, free: 5.652 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.807/1.807, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004597/0.0004598, allocations: 15.42 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1036, allocations: 47.58 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002397/0.106, allocations: 1.483 MB / 329.8 MB, free: 2.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.1078, allocations: 0.8629 MB / 330.7 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.108, allocations: 4 kB / 330.7 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006507/0.1086, allocations: 143.7 kB / 330.8 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003244/0.109, allocations: 107.7 kB / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.1095, allocations: 119.7 kB / 331 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003474/0.1098, allocations: 127.8 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.11, allocations: 17.55 kB / 331.2 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.1102, allocations: 75.69 kB / 331.2 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.1104, allocations: 79.67 kB / 331.3 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.1104, allocations: 4 kB / 331.3 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.1106, allocations: 35.92 kB / 331.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.1107, allocations: 43.83 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.1109, allocations: 49.64 kB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003401/0.1112, allocations: 159.9 kB / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1112, allocations: 0 / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.716e-06/0.1113, allocations: 0 / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1113, allocations: 0 / 331.6 MB, free: 0.7852 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.001341/0.1126, allocations: 0.5039 MB / 332.1 MB, free: 232 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.1127, allocations: 8.031 kB / 332.1 MB, free: 224 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.1128, allocations: 19.81 kB / 332.1 MB, free: 204 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006168/0.1134, allocations: 253.6 kB / 332.4 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.1135, allocations: 8 kB / 332.4 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/0.1135, allocations: 4 kB / 332.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.1139, allocations: 125.9 kB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.1139, allocations: 0 / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.1139, allocations: 4 kB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.1139, allocations: 0 / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.1141, allocations: 55.89 kB / 332.6 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.1153, allocations: 0.6066 MB / 333.2 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.1157, allocations: 135.8 kB / 333.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.566e-05/0.1158, allocations: 8.062 kB / 333.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.1161, allocations: 118.1 kB / 333.4 MB, free: 14.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.1161, allocations: 0 / 333.4 MB, free: 14.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005866/0.1167, allocations: 181.6 kB / 333.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.1168, allocations: 136.5 kB / 333.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.1172, allocations: 281 kB / 334 MB, free: 14.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.1173, allocations: 29.7 kB / 334.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1174, allocations: 128.5 kB / 334.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.1175, allocations: 27.66 kB / 334.2 MB, free: 13.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-06/0.1175, allocations: 4 kB / 334.2 MB, free: 13.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1177, allocations: 334.8 kB / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.06e-05/0.1178, allocations: 27.98 kB / 334.6 MB, free: 13.53 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.1179, allocations: 89.98 kB / 334.7 MB, free: 13.42 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.434e-05/0.118, allocations: 36.06 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.118, allocations: 0 / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002839/0.1183, allocations: 145.4 kB / 334.8 MB, free: 13.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1184, allocations: 7.938 kB / 334.8 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1184, allocations: 4 kB / 334.8 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1184, allocations: 0 / 334.8 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.176e-05/0.1185, allocations: 16 kB / 334.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.1185, allocations: 7.984 kB / 334.9 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.1186, allocations: 11.91 kB / 334.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.1186, allocations: 4 kB / 334.9 MB, free: 13.18 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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001919/0.1188, allocations: 165.5 kB / 335 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.1189, allocations: 19.8 kB / 335.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.119, allocations: 21.72 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.119, allocations: 4 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.119, allocations: 0 / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.119, allocations: 3.984 kB / 335.1 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002543/0.1193, allocations: 245.4 kB / 335.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1193, allocations: 0 / 335.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.939e-05/0.1193, allocations: 7.984 kB / 335.3 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.1193, allocations: 4 kB / 335.3 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.1193, allocations: 8 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1193, allocations: 4.125 kB / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1194, allocations: 4 kB / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/0.1197, allocations: 205.8 kB / 335.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.661e-05/0.1198, allocations: 104.8 kB / 335.7 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.1198, allocations: 0 / 335.7 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.1199, allocations: 19.98 kB / 335.7 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.728e-05/0.12, allocations: 11.94 kB / 335.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.12, allocations: 15.92 kB / 335.7 MB, free: 12.24 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.1203, allocations: 208.5 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1203, allocations: 4 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1206, allocations: 36 kB / 336 MB, free: 12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001162/0.1218, allocations: 424.9 kB / 336.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002995/0.1221, allocations: 83.91 kB / 336.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.1221, allocations: 0 / 336.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.1223, allocations: 64.09 kB / 336.5 MB, free: 11.45 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.1226, allocations: 52.25 kB / 336.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007547/0.1234, allocations: 356 kB / 336.9 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.1238, allocations: 0.7439 MB / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.367e-05/0.1239, allocations: 21.55 kB / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.959e-05/0.1239, allocations: 15.44 kB / 337.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of SimCode: time 2.064e-06/0.1239, allocations: 0 / 337.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of Templates: time 0.00713/0.1311, allocations: 2.471 MB / 340.2 MB, free: 7.738 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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