Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_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 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 184.2 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.177/1.177, allocations: 221.4 MB / 229.9 MB, free: 2.996 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009459, allocations: 98.86 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.264e-06/7.294e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1883, allocations: 50.4 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08734/0.2756, allocations: 79.8 MB / 466.7 MB, free: 6.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001745/0.2759, allocations: 67.97 kB / 466.8 MB, free: 6.914 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01644/0.2923, allocations: 5.458 MB / 472.2 MB, free: 1.508 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.2924, allocations: 4 kB / 472.2 MB, free: 1.504 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.0005946/0.293, allocations: 499.6 kB / 472.7 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.293, allocations: 12.03 kB / 472.7 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.2931, allocations: 15.81 kB / 472.7 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.2935, allocations: 261.7 kB / 473 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.2935, allocations: 0 / 473 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.2935, allocations: 8 kB / 473 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001109/0.2936, allocations: 39.98 kB / 473 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.2938, allocations: 108.3 kB / 473.1 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.2938, allocations: 0 / 473.1 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.2938, allocations: 4 kB / 473.2 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2938, allocations: 0 / 473.2 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005389/0.2944, allocations: 0.5877 MB / 473.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.2946, allocations: 110.6 kB / 473.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.64e-05/0.2946, allocations: 38.7 kB / 473.9 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.2947, allocations: 23.91 kB / 473.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001596/0.2948, allocations: 107.5 kB / 474 MB, free: 15.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.2948, allocations: 3.938 kB / 474 MB, free: 15.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002454/0.2951, allocations: 109.5 kB / 474.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.2952, allocations: 136.5 kB / 474.3 MB, free: 15.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.2954, allocations: 252 kB / 474.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.2955, allocations: 29.69 kB / 474.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.048e-05/0.2955, allocations: 100.1 kB / 474.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.2956, allocations: 27.56 kB / 474.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-06/0.2956, allocations: 0 / 474.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.2957, allocations: 330.8 kB / 475 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.34e-05/0.2958, allocations: 24 kB / 475 MB, free: 14.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.368e-05/0.2959, allocations: 78 kB / 475.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.758e-05/0.2959, allocations: 28.55 kB / 475.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2959, allocations: 3.938 kB / 475.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001958/0.2961, allocations: 122.7 kB / 475.2 MB, free: 14.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2962, allocations: 12.03 kB / 475.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.2962, allocations: 0 / 475.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.2962, allocations: 0 / 475.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.088e-05/0.2963, allocations: 20.64 kB / 475.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.2963, allocations: 7.938 kB / 475.3 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.2964, allocations: 15.98 kB / 475.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.2965, allocations: 9.062 kB / 475.3 MB, free: 14.13 MB / 362.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 7.336e-05/0.2965, allocations: 108.9 kB / 475.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.691e-05/0.2966, allocations: 15.81 kB / 475.4 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.2968, allocations: 103.3 kB / 475.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2968, allocations: 0.75 kB / 475.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2968, allocations: 7.906 kB / 475.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2968, allocations: 0 / 475.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.297, allocations: 218.7 kB / 475.7 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.297, allocations: 4 kB / 475.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.74e-05/0.2971, allocations: 11.98 kB / 475.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2971, allocations: 0 / 475.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.2971, allocations: 5.312 kB / 475.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2971, allocations: 0.9375 kB / 475.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.2971, allocations: 3.906 kB / 475.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002257/0.2974, allocations: 191.3 kB / 476 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.616e-05/0.2974, allocations: 108.8 kB / 476.1 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.128e-05/0.2975, allocations: 3.906 kB / 476.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.2976, allocations: 15.98 kB / 476.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.258e-05/0.2977, allocations: 23.97 kB / 476.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2977, allocations: 4.938 kB / 476.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001796/0.2979, allocations: 196.5 kB / 476.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002876/0.2982, allocations: 36 kB / 476.3 MB, free: 12.98 MB / 362.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.0006695/0.2989, allocations: 329.5 kB / 476.7 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001924/0.2991, allocations: 83.92 kB / 476.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2991, allocations: 4.188 kB / 476.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.127e-05/0.2992, allocations: 43.94 kB / 476.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.2995, allocations: 44.33 kB / 476.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005377/0.3, allocations: 253.5 kB / 477.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004051/0.3005, allocations: 0.7667 MB / 477.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3005, allocations: 0 / 477.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of Templates: time 0.005662/0.3061, allocations: 2.506 MB / 480.3 MB, free: 9.023 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches