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") [: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.002705/0.002705, allocations: 176 kB / 8.149 MB, free: 2.195 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.76/1.76, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001284/0.001283, allocations: 89.69 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.143e-05/1.158e-05, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2391, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.3584, allocations: 78.55 MB / 440.4 MB, free: 7.516 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.3587, allocations: 70.03 kB / 440.4 MB, free: 7.449 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0255/0.3843, allocations: 5.302 MB / 445.7 MB, free: 2.207 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.897e-05/0.3843, allocations: 4 kB / 445.7 MB, free: 2.203 MB / 330.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.0009068/0.3853, allocations: 495.5 kB / 446.2 MB, free: 1.668 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3853, allocations: 13.16 kB / 446.2 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.3854, allocations: 15.81 kB / 446.3 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005987/0.386, allocations: 273.6 kB / 446.5 MB, free: 1.328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.3861, allocations: 0 / 446.5 MB, free: 1.328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.3861, allocations: 5.125 kB / 446.5 MB, free: 1.324 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000176/0.3863, allocations: 39.98 kB / 446.6 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002333/0.3865, allocations: 98.25 kB / 446.7 MB, free: 1.168 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3866, allocations: 3.938 kB / 446.7 MB, free: 1.164 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.3866, allocations: 0 / 446.7 MB, free: 1.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.3866, allocations: 11.98 kB / 446.7 MB, free: 1.152 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008366/0.3875, allocations: 0.5721 MB / 447.3 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.3877, allocations: 119.8 kB / 447.4 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3879, allocations: 47.72 kB / 447.4 MB, free: 340 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.3879, allocations: 8.062 kB / 447.4 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.3881, allocations: 111.8 kB / 447.5 MB, free: 200 kB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 2.956e-06/0.3882, allocations: 0 / 447.5 MB, free: 200 kB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003859/0.3886, allocations: 113.3 kB / 447.6 MB, free: 80 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/0.3887, allocations: 132.5 kB / 447.8 MB, free: 15.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004674/0.3891, allocations: 248.1 kB / 448 MB, free: 15.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.3892, allocations: 25.73 kB / 448 MB, free: 15.63 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.005e-05/0.3893, allocations: 162.6 kB / 448.2 MB, free: 15.47 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.107e-05/0.3893, allocations: 27.61 kB / 448.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.3894, allocations: 0 / 448.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3895, allocations: 317.2 kB / 448.5 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.332e-05/0.3896, allocations: 35.86 kB / 448.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.3898, allocations: 82.5 kB / 448.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.692e-05/0.3899, allocations: 24 kB / 448.7 MB, free: 14.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3899, allocations: 4 kB / 448.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000297/0.3902, allocations: 106.5 kB / 448.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3902, allocations: 4 kB / 448.8 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3902, allocations: 4 kB / 448.8 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.3903, allocations: 4.125 kB / 448.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.3904, allocations: 19.92 kB / 448.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.3905, allocations: 4 kB / 448.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.3906, allocations: 20.91 kB / 448.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.3907, allocations: 4 kB / 448.8 MB, free: 14.8 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 () * 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 9.307e-05/0.3908, allocations: 45.55 kB / 448.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-05/0.3909, allocations: 15.81 kB / 448.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003431/0.3912, allocations: 101.3 kB / 449 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.3912, allocations: 4.656 kB / 449 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.3913, allocations: 4 kB / 449 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3913, allocations: 0 / 449 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003302/0.3916, allocations: 222.1 kB / 449.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3916, allocations: 0 / 449.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.953e-05/0.3917, allocations: 8.5 kB / 449.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.3917, allocations: 0 / 449.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.3918, allocations: 8 kB / 449.2 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.223e-06/0.3918, allocations: 8.094 kB / 449.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3918, allocations: 1.781 kB / 449.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003432/0.3921, allocations: 178.8 kB / 449.4 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.3923, allocations: 116.8 kB / 449.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.3923, allocations: 0 / 449.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.3926, allocations: 15.98 kB / 449.6 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.824e-05/0.3926, allocations: 11.98 kB / 449.6 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.3927, allocations: 4 kB / 449.6 MB, free: 13.97 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003335/0.393, allocations: 200.5 kB / 449.8 MB, free: 13.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003795/0.3934, allocations: 47.98 kB / 449.8 MB, free: 13.73 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) * 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.0008894/0.3943, allocations: 318.4 kB / 450.1 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003373/0.3947, allocations: 83.92 kB / 450.2 MB, free: 13.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/0.3947, allocations: 4 kB / 450.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.3949, allocations: 47.92 kB / 450.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005386/0.3954, allocations: 44.31 kB / 450.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008768/0.3963, allocations: 293.6 kB / 450.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004805/0.3968, allocations: 0.7743 MB / 451.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of SimCode: time 9.02e-07/0.3968, allocations: 0 / 451.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of Templates: time 0.007626/0.4045, allocations: 2.899 MB / 454.3 MB, free: 9.27 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