Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001426/0.001426, allocations: 185.8 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.829/1.829, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 83.45 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003626, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3178, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1206/0.4385, allocations: 79.36 MB / 453.9 MB, free: 1.402 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4388, allocations: 75.97 kB / 454 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02455/0.4634, allocations: 5.721 MB / 459.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4635, allocations: 4 kB / 459.7 MB, free: 11.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.4635, allocations: 0 / 459.7 MB, free: 11.6 MB / 346.7 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.0009235/0.4644, allocations: 0.5195 MB / 460.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4645, allocations: 8.031 kB / 460.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.168e-05/0.4646, allocations: 15.81 kB / 460.2 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.4651, allocations: 261.7 kB / 460.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.4651, allocations: 11.98 kB / 460.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/0.4651, allocations: 4 kB / 460.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.4655, allocations: 125.8 kB / 460.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.4655, allocations: 4 kB / 460.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.4655, allocations: 0 / 460.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.4655, allocations: 4 kB / 460.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.4658, allocations: 55.91 kB / 460.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000837/0.4666, allocations: 0.6261 MB / 461.3 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/0.467, allocations: 123.9 kB / 461.4 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.4671, allocations: 0 / 461.4 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002901/0.4674, allocations: 129.9 kB / 461.6 MB, free: 9.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.753e-06/0.4674, allocations: 0 / 461.6 MB, free: 9.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006573/0.468, allocations: 177.9 kB / 461.7 MB, free: 9.316 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.4681, allocations: 136.5 kB / 461.9 MB, free: 9.152 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004381/0.4686, allocations: 268 kB / 462.1 MB, free: 8.883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.4686, allocations: 25.7 kB / 462.2 MB, free: 8.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.4687, allocations: 178.8 kB / 462.3 MB, free: 8.672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.4688, allocations: 27.64 kB / 462.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/0.4688, allocations: 4 kB / 462.4 MB, free: 8.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.4689, allocations: 318.8 kB / 462.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.4691, allocations: 35.98 kB / 462.7 MB, free: 8.285 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.4693, allocations: 85.91 kB / 462.8 MB, free: 8.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.4695, allocations: 40.02 kB / 462.8 MB, free: 8.141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4695, allocations: 3.953 kB / 462.8 MB, free: 8.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004151/0.4699, allocations: 133.4 kB / 463 MB, free: 8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.47, allocations: 8 kB / 463 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.47, allocations: 0 / 463 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.47, allocations: 4 kB / 463 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.4701, allocations: 19.98 kB / 463 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.4702, allocations: 0 / 463 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.4704, allocations: 20.08 kB / 463 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.4704, allocations: 4 kB / 463 MB, free: 7.945 MB / 346.7 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.0001717/0.4706, allocations: 149.6 kB / 463.2 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/0.4707, allocations: 27.67 kB / 463.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003464/0.471, allocations: 111.4 kB / 463.3 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.471, allocations: 3.938 kB / 463.3 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.471, allocations: 4 kB / 463.3 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.4711, allocations: 4 kB / 463.3 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003197/0.4714, allocations: 253.5 kB / 463.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4714, allocations: 0 / 463.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.635e-05/0.4715, allocations: 8.203 kB / 463.6 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.4715, allocations: 4 kB / 463.6 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.4715, allocations: 11.98 kB / 463.6 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.4715, allocations: 4 kB / 463.6 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4715, allocations: 0 / 463.6 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004769/0.472, allocations: 213.8 kB / 463.8 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.4721, allocations: 104.9 kB / 463.9 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.4722, allocations: 0 / 463.9 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.4724, allocations: 27.97 kB / 463.9 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.139e-05/0.4725, allocations: 11.98 kB / 463.9 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.4725, allocations: 11.98 kB / 463.9 MB, free: 6.895 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003162/0.4728, allocations: 208.5 kB / 464.2 MB, free: 6.695 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4729, allocations: 0 / 464.2 MB, free: 6.695 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000467/0.4733, allocations: 40 kB / 464.2 MB, free: 6.656 MB / 346.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.001207/0.4746, allocations: 440.1 kB / 464.6 MB, free: 6.254 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004205/0.475, allocations: 99.88 kB / 464.7 MB, free: 6.156 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.475, allocations: 3.938 kB / 464.7 MB, free: 6.152 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.4752, allocations: 59.91 kB / 464.8 MB, free: 6.094 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004274/0.4757, allocations: 46.55 kB / 464.8 MB, free: 6.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008605/0.4766, allocations: 413.4 kB / 465.2 MB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.4769, allocations: 0.7361 MB / 466 MB, free: 4.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.537e-05/0.477, allocations: 27.38 kB / 466 MB, free: 4.82 MB / 346.7 MB Notification: Performance of SimCode: time 7.11e-07/0.477, allocations: 4 kB / 466 MB, free: 4.816 MB / 346.7 MB Notification: Performance of Templates: time 0.006952/0.484, allocations: 2.92 MB / 468.9 MB, free: 1.898 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches