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.001477/0.001476, allocations: 178.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.048/2.048, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 91.84 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.959e-05/1.958e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3299, allocations: 47.57 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.4559, allocations: 78.61 MB / 440.9 MB, free: 7.68 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.4562, allocations: 67.97 kB / 441 MB, free: 7.613 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02621/0.4824, allocations: 5.663 MB / 446.7 MB, free: 2.016 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4825, allocations: 0.8438 kB / 446.7 MB, free: 2.016 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.896e-05/0.4825, allocations: 4 kB / 446.7 MB, free: 2.012 MB / 331.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.0008877/0.4834, allocations: 494.6 kB / 447.2 MB, free: 1.48 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.4835, allocations: 8.031 kB / 447.2 MB, free: 1.473 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.4836, allocations: 19.81 kB / 447.2 MB, free: 1.453 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005725/0.4842, allocations: 257.7 kB / 447.4 MB, free: 1.156 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.4842, allocations: 4 kB / 447.4 MB, free: 1.152 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.028e-05/0.4842, allocations: 4 kB / 447.4 MB, free: 1.148 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001706/0.4844, allocations: 47.88 kB / 447.5 MB, free: 1.102 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002379/0.4847, allocations: 108.3 kB / 447.6 MB, free: 0.9766 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4847, allocations: 0 / 447.6 MB, free: 0.9766 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.4847, allocations: 0 / 447.6 MB, free: 0.9766 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.4848, allocations: 0 / 447.6 MB, free: 0.9766 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009074/0.4857, allocations: 0.5954 MB / 448.2 MB, free: 340 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.4859, allocations: 115.9 kB / 448.3 MB, free: 200 kB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.4861, allocations: 46.69 kB / 448.4 MB, free: 144 kB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.4861, allocations: 4.078 kB / 448.4 MB, free: 140 kB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.4864, allocations: 113.9 kB / 448.5 MB, free: 4 kB / 331.1 MB Notification: Performance of pre-optimization done (n=12): time 2.084e-06/0.4864, allocations: 0 / 448.5 MB, free: 4 kB / 331.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004336/0.4868, allocations: 125.4 kB / 448.6 MB, free: 15.87 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.4869, allocations: 140.5 kB / 448.7 MB, free: 15.7 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004313/0.4874, allocations: 244.5 kB / 449 MB, free: 15.46 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.4874, allocations: 29.7 kB / 449 MB, free: 15.42 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.4876, allocations: 174.6 kB / 449.2 MB, free: 15.25 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.4876, allocations: 27.61 kB / 449.2 MB, free: 15.22 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/0.4876, allocations: 0 / 449.2 MB, free: 15.22 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.4878, allocations: 318.8 kB / 449.5 MB, free: 14.9 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.402e-05/0.4879, allocations: 23.94 kB / 449.5 MB, free: 14.88 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.4881, allocations: 78 kB / 449.6 MB, free: 14.78 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.4882, allocations: 31.92 kB / 449.6 MB, free: 14.75 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.4882, allocations: 0 / 449.6 MB, free: 14.75 MB / 347.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002892/0.4885, allocations: 120 kB / 449.8 MB, free: 14.63 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4885, allocations: 4 kB / 449.8 MB, free: 14.62 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.4886, allocations: 0 / 449.8 MB, free: 14.62 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.4886, allocations: 4 kB / 449.8 MB, free: 14.62 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.4888, allocations: 23.92 kB / 449.8 MB, free: 14.6 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.4888, allocations: 0 / 449.8 MB, free: 14.6 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.489, allocations: 19.89 kB / 449.8 MB, free: 14.58 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.489, allocations: 6.109 kB / 449.8 MB, free: 14.57 MB / 347.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 () * 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.0001181/0.4892, allocations: 109.3 kB / 449.9 MB, free: 14.46 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.077e-05/0.4892, allocations: 27.75 kB / 449.9 MB, free: 14.43 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00031/0.4896, allocations: 115.4 kB / 450.1 MB, free: 14.32 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.4896, allocations: 0 / 450.1 MB, free: 14.32 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.4896, allocations: 0 / 450.1 MB, free: 14.32 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.4896, allocations: 4 kB / 450.1 MB, free: 14.31 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003263/0.4899, allocations: 222 kB / 450.3 MB, free: 14.06 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.49, allocations: 0 / 450.3 MB, free: 14.06 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.974e-05/0.49, allocations: 8 kB / 450.3 MB, free: 14.05 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.4901, allocations: 4 kB / 450.3 MB, free: 14.05 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.4901, allocations: 3.953 kB / 450.3 MB, free: 14.05 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4901, allocations: 4 kB / 450.3 MB, free: 14.04 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4901, allocations: 0 / 450.3 MB, free: 14.04 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003699/0.4905, allocations: 197.9 kB / 450.5 MB, free: 13.81 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.4906, allocations: 108.8 kB / 450.6 MB, free: 13.69 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.76e-05/0.4907, allocations: 0 / 450.6 MB, free: 13.69 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.4909, allocations: 15.98 kB / 450.6 MB, free: 13.67 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.628e-05/0.491, allocations: 11.98 kB / 450.6 MB, free: 13.66 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.491, allocations: 10.98 kB / 450.6 MB, free: 13.65 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002997/0.4913, allocations: 196.5 kB / 450.8 MB, free: 13.46 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4913, allocations: 4 kB / 450.8 MB, free: 13.46 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0003998/0.4917, allocations: 36 kB / 450.9 MB, free: 13.42 MB / 347.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.001095/0.4929, allocations: 370.4 kB / 451.2 MB, free: 13.1 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.000327/0.4932, allocations: 79.92 kB / 451.3 MB, free: 13.02 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.4932, allocations: 8.188 kB / 451.3 MB, free: 13.02 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.4934, allocations: 50.83 kB / 451.4 MB, free: 12.97 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.4939, allocations: 44.27 kB / 451.4 MB, free: 12.93 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007629/0.4947, allocations: 293.5 kB / 451.7 MB, free: 12.6 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.4951, allocations: 0.7398 MB / 452.4 MB, free: 11.84 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.884e-05/0.4952, allocations: 19.44 kB / 452.4 MB, free: 11.82 MB / 347.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4952, allocations: 0 / 452.4 MB, free: 11.82 MB / 347.1 MB Notification: Performance of Templates: time 0.008053/0.5033, allocations: 2.89 MB / 455.3 MB, free: 8.941 MB / 347.1 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