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.001138/0.001138, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.001195/0.001195, allocations: 186.9 kB / 19.28 MB, free: 3.879 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.365/1.365, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001199/0.001199, allocations: 51.94 kB / 282.1 MB, free: 2.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 46.61 MB / 328.7 MB, free: 3.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003941/0.1073, allocations: 1.836 MB / 330.5 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.109, allocations: 0.9488 MB / 331.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.903e-05/0.1091, allocations: 0 / 331.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006283/0.1097, allocations: 167.5 kB / 331.6 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.1101, allocations: 123.5 kB / 331.8 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.1105, allocations: 159.6 kB / 331.9 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.1107, allocations: 207.4 kB / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.1108, allocations: 21.53 kB / 332.1 MB, free: 332 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.111, allocations: 87.62 kB / 332.2 MB, free: 244 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.1111, allocations: 79.67 kB / 332.3 MB, free: 164 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.1111, allocations: 12 kB / 332.3 MB, free: 152 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.1113, allocations: 63.97 kB / 332.4 MB, free: 88 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.784e-05/0.1114, allocations: 47.77 kB / 332.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.1115, allocations: 79.53 kB / 332.5 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003176/0.1119, allocations: 211.3 kB / 332.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1119, allocations: 0 / 332.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1119, allocations: 0 / 332.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1119, allocations: 0 / 332.7 MB, free: 15.75 MB / 286.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.0009687/0.1129, allocations: 0.5235 MB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1129, allocations: 15.97 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.132e-05/0.113, allocations: 20.66 kB / 333.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.1134, allocations: 258.8 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.1134, allocations: 12.36 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.1134, allocations: 8.125 kB / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002383/0.1137, allocations: 117.9 kB / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-06/0.1137, allocations: 0 / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.1137, allocations: 0 / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.1137, allocations: 4 kB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001402/0.1139, allocations: 51.89 kB / 333.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006555/0.1145, allocations: 0.6182 MB / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.1148, allocations: 115.9 kB / 334.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.1149, allocations: 58.55 kB / 334.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.1149, allocations: 0 / 334.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002145/0.1151, allocations: 117.9 kB / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.1152, allocations: 0 / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004542/0.1156, allocations: 173.4 kB / 334.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.1157, allocations: 132.5 kB / 334.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.116, allocations: 288.9 kB / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.116, allocations: 29.7 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/0.1161, allocations: 124.4 kB / 335.4 MB, free: 12.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.1162, allocations: 27.72 kB / 335.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.1162, allocations: 37.7 kB / 335.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1164, allocations: 338.9 kB / 335.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.658e-05/0.1165, allocations: 27.98 kB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.1166, allocations: 87.19 kB / 335.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.1168, allocations: 96.25 kB / 336 MB, free: 12.17 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1168, allocations: 0 / 336 MB, free: 12.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002697/0.1171, allocations: 145.8 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.1171, allocations: 4 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1171, allocations: 8.062 kB / 336.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1172, allocations: 4 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.58e-05/0.1172, allocations: 16.09 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1173, allocations: 4 kB / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1174, allocations: 19.92 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.1174, allocations: 4 kB / 336.2 MB, free: 11.96 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.0001365/0.1175, allocations: 149.6 kB / 336.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/0.1176, allocations: 27.72 kB / 336.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.1176, allocations: 25.7 kB / 336.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1176, allocations: 0 / 336.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1177, allocations: 4 kB / 336.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.1177, allocations: 15.91 kB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.1179, allocations: 237.5 kB / 336.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1179, allocations: 0 / 336.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.608e-05/0.1179, allocations: 4 kB / 336.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.118, allocations: 7.984 kB / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.118, allocations: 0 / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.118, allocations: 7.984 kB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.118, allocations: 3.938 kB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.1183, allocations: 182.4 kB / 336.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.1184, allocations: 92.92 kB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1184, allocations: 7.984 kB / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.804e-05/0.1185, allocations: 11.98 kB / 336.9 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.1186, allocations: 15.92 kB / 336.9 MB, free: 11.08 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.1186, allocations: 8 kB / 336.9 MB, free: 11.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002032/0.1188, allocations: 216.5 kB / 337.1 MB, free: 10.86 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1188, allocations: 0 / 337.1 MB, free: 10.86 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.1191, allocations: 36 kB / 337.2 MB, free: 10.83 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.0009718/0.1201, allocations: 425.5 kB / 337.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.1204, allocations: 91.97 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1204, allocations: 8.062 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.1205, allocations: 51.91 kB / 337.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.1209, allocations: 48.84 kB / 337.8 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006156/0.1215, allocations: 344.7 kB / 338.1 MB, free: 9.848 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.1218, allocations: 0.7358 MB / 338.9 MB, free: 9.086 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.35e-05/0.1219, allocations: 25.53 kB / 338.9 MB, free: 9.062 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.975e-05/0.1219, allocations: 19.44 kB / 338.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1219, allocations: 4 kB / 338.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of Templates: time 0.006069/0.128, allocations: 2.752 MB / 341.7 MB, free: 6.285 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches