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/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_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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 178.4 kB / 8.475 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.147/1.147, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008566/0.0008567, allocations: 78.33 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.492e-06/6.512e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07586/0.07588, allocations: 47.57 MB / 362.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3167/0.3926, allocations: 78.53 MB / 441.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001761/0.3929, allocations: 69.77 kB / 441.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01452/0.4074, allocations: 5.306 MB / 446.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.4074, allocations: 3.812 kB / 446.4 MB, free: 10.26 MB / 314.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.0004875/0.4079, allocations: 489.4 kB / 446.9 MB, free: 9.801 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.408, allocations: 11.67 kB / 446.9 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/0.408, allocations: 15.5 kB / 447 MB, free: 9.789 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.4084, allocations: 271.1 kB / 447.2 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.4084, allocations: 0 / 447.2 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.4084, allocations: 3.844 kB / 447.2 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001057/0.4085, allocations: 39.36 kB / 447.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.4087, allocations: 109.5 kB / 447.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.4087, allocations: 0 / 447.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.4087, allocations: 7.781 kB / 447.4 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.4087, allocations: 0 / 447.4 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.4092, allocations: 0.5855 MB / 448 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.4093, allocations: 119.4 kB / 448.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.902e-05/0.4094, allocations: 49.64 kB / 448.1 MB, free: 8.797 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.4094, allocations: 0 / 448.1 MB, free: 8.797 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001278/0.4096, allocations: 99.52 kB / 448.2 MB, free: 8.715 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.854e-06/0.4096, allocations: 0 / 448.2 MB, free: 8.715 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002215/0.4098, allocations: 124.4 kB / 448.3 MB, free: 8.656 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.4098, allocations: 128.5 kB / 448.5 MB, free: 8.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.4101, allocations: 253.8 kB / 448.7 MB, free: 8.379 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.4101, allocations: 25.7 kB / 448.7 MB, free: 8.348 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.281e-05/0.4101, allocations: 107.5 kB / 448.8 MB, free: 8.254 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.4101, allocations: 26.75 kB / 448.9 MB, free: 8.238 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.4102, allocations: 0 / 448.9 MB, free: 8.238 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.347e-05/0.4102, allocations: 329.3 kB / 449.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.639e-05/0.4103, allocations: 33.5 kB / 449.2 MB, free: 7.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.458e-05/0.4103, allocations: 81.5 kB / 449.3 MB, free: 7.848 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.119e-05/0.4104, allocations: 30.8 kB / 449.3 MB, free: 7.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4104, allocations: 3.938 kB / 449.3 MB, free: 7.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001696/0.4106, allocations: 128.8 kB / 449.5 MB, free: 7.773 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.4106, allocations: 7.688 kB / 449.5 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.4106, allocations: 0 / 449.5 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.4106, allocations: 7.828 kB / 449.5 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.585e-05/0.4107, allocations: 15.67 kB / 449.5 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.4107, allocations: 0 / 449.5 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.4109, allocations: 19.61 kB / 449.5 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.4109, allocations: 6.844 kB / 449.5 MB, free: 7.758 MB / 314.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 () * 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 5.734e-05/0.4109, allocations: 112.7 kB / 449.6 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.411, allocations: 19 kB / 449.7 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001547/0.4111, allocations: 102.7 kB / 449.8 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.4112, allocations: 7.828 kB / 449.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4112, allocations: 0 / 449.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.4112, allocations: 0 / 449.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.4113, allocations: 224.5 kB / 450 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4114, allocations: 0 / 450 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.424e-05/0.4114, allocations: 11.8 kB / 450 MB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.4114, allocations: 3.938 kB / 450 MB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.4114, allocations: 3.906 kB / 450 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.4114, allocations: 3.875 kB / 450 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4114, allocations: 0 / 450 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001668/0.4116, allocations: 178.4 kB / 450.2 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.4117, allocations: 112.2 kB / 450.3 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.4117, allocations: 7.844 kB / 450.3 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.4118, allocations: 15.67 kB / 450.3 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.519e-05/0.4119, allocations: 18.97 kB / 450.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.4119, allocations: 3.688 kB / 450.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001337/0.412, allocations: 197.3 kB / 450.5 MB, free: 7.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002614/0.4123, allocations: 45.94 kB / 450.6 MB, free: 7.012 MB / 314.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) * 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.0005763/0.4129, allocations: 311.1 kB / 450.9 MB, free: 6.762 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001695/0.4131, allocations: 88.55 kB / 451 MB, free: 6.746 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.4131, allocations: 3.875 kB / 451 MB, free: 6.746 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.741e-05/0.4132, allocations: 48.22 kB / 451 MB, free: 6.742 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.4134, allocations: 33.06 kB / 451 MB, free: 6.734 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004639/0.4139, allocations: 266.9 kB / 451.3 MB, free: 6.586 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.4141, allocations: 0.7624 MB / 452.1 MB, free: 5.852 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4141, allocations: 0 / 452.1 MB, free: 5.852 MB / 314.7 MB Notification: Performance of Templates: time 0.004928/0.419, allocations: 2.506 MB / 454.6 MB, free: 4.594 MB / 314.7 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