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.001448/0.001448, allocations: 112.6 kB / 17.28 MB, free: 6.199 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.001482/0.001482, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.213/2.213, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001229/0.001229, allocations: 48.16 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 46.64 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003672/0.1092, allocations: 1.867 MB / 328.6 MB, free: 2.918 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.1109, allocations: 0.9442 MB / 329.6 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.111, allocations: 0 / 329.6 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000593/0.1116, allocations: 159.6 kB / 329.7 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.1119, allocations: 111.6 kB / 329.8 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.1123, allocations: 143.8 kB / 330 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.1125, allocations: 203.4 kB / 330.2 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.1126, allocations: 25.55 kB / 330.2 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.1128, allocations: 87.62 kB / 330.3 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.1129, allocations: 87.67 kB / 330.4 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.1129, allocations: 8 kB / 330.4 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1131, allocations: 55.91 kB / 330.4 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.013e-05/0.1131, allocations: 43.84 kB / 330.5 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.409e-05/0.1132, allocations: 83.52 kB / 330.6 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002792/0.1135, allocations: 211.6 kB / 330.8 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1135, allocations: 0 / 330.8 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1135, allocations: 0 / 330.8 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1135, allocations: 4 kB / 330.8 MB, free: 0.7656 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.0008965/0.1145, allocations: 0.5235 MB / 331.3 MB, free: 192 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1145, allocations: 8.031 kB / 331.3 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.159e-05/0.1146, allocations: 20.66 kB / 331.3 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.1149, allocations: 262.9 kB / 331.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.1149, allocations: 4.375 kB / 331.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.1149, allocations: 8.125 kB / 331.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.1152, allocations: 121.9 kB / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1152, allocations: 0 / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.1152, allocations: 0 / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1152, allocations: 4 kB / 331.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.1154, allocations: 59.81 kB / 331.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006603/0.1161, allocations: 0.6104 MB / 332.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.1164, allocations: 123.9 kB / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.1165, allocations: 50.56 kB / 332.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.1165, allocations: 0 / 332.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.1168, allocations: 125.9 kB / 332.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.1168, allocations: 0 / 332.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004409/0.1172, allocations: 169.4 kB / 332.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.026e-05/0.1173, allocations: 132.5 kB / 333 MB, free: 14.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.1176, allocations: 284.9 kB / 333.3 MB, free: 14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.1176, allocations: 29.83 kB / 333.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.884e-05/0.1177, allocations: 132.3 kB / 333.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.474e-05/0.1178, allocations: 27.72 kB / 333.4 MB, free: 13.8 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-05/0.1178, allocations: 41.64 kB / 333.5 MB, free: 13.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.118, allocations: 330.8 kB / 333.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-05/0.1181, allocations: 35.91 kB / 333.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.1182, allocations: 86 kB / 333.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.1184, allocations: 100.7 kB / 334 MB, free: 13.17 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1184, allocations: 0 / 334 MB, free: 13.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003225/0.1188, allocations: 141.3 kB / 334.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1188, allocations: 4 kB / 334.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1188, allocations: 4 kB / 334.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1188, allocations: 0 / 334.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.392e-05/0.1189, allocations: 15.98 kB / 334.2 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1189, allocations: 0 / 334.2 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.119, allocations: 19.92 kB / 334.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.1191, allocations: 11.98 kB / 334.2 MB, free: 12.97 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.0001337/0.1192, allocations: 161.4 kB / 334.4 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.1192, allocations: 23.66 kB / 334.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.116e-05/0.1193, allocations: 25.7 kB / 334.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1193, allocations: 4 kB / 334.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1193, allocations: 0 / 334.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.1193, allocations: 7.938 kB / 334.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.1196, allocations: 237.5 kB / 334.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1196, allocations: 0 / 334.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.062e-05/0.1197, allocations: 4 kB / 334.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.1197, allocations: 4 kB / 334.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.1197, allocations: 4 kB / 334.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.1198, allocations: 7.938 kB / 334.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1198, allocations: 128 / 334.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003242/0.1201, allocations: 182.5 kB / 334.9 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.575e-05/0.1202, allocations: 92.92 kB / 335 MB, free: 12.13 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.1202, allocations: 8 kB / 335 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.759e-05/0.1203, allocations: 15.98 kB / 335 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.38e-05/0.1204, allocations: 15.86 kB / 335 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.1204, allocations: 11.98 kB / 335 MB, free: 12.08 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.1206, allocations: 212.5 kB / 335.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1206, allocations: 0 / 335.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002785/0.1209, allocations: 32 kB / 335.2 MB, free: 11.84 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.001009/0.1219, allocations: 430.3 kB / 335.7 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002826/0.1222, allocations: 95.89 kB / 335.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1222, allocations: 0 / 335.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.1224, allocations: 47.92 kB / 335.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000384/0.1228, allocations: 52.58 kB / 335.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006613/0.1234, allocations: 388.6 kB / 336.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.1238, allocations: 0.7319 MB / 337 MB, free: 10.06 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.742e-05/0.1239, allocations: 25.55 kB / 337 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.612e-05/0.124, allocations: 27.42 kB / 337 MB, free: 10.01 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.124, allocations: 0 / 337 MB, free: 10.01 MB / 286.1 MB Notification: Performance of Templates: time 0.005977/0.13, allocations: 2.647 MB / 339.7 MB, free: 7.363 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