Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002523/0.002523, allocations: 177.5 kB / 8.149 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001254/0.001254, allocations: 96.62 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2684/0.2684, allocations: 43.5 MB / 353.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.013e-05/1.034e-05, allocations: 4 kB / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3234, allocations: 58.83 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1519/0.4754, allocations: 85.63 MB / 0.549 GB, free: 13.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.4757, allocations: 63.47 kB / 0.549 GB, free: 13.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01481/0.4905, allocations: 2.587 MB / 0.5516 GB, free: 10.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.4905, allocations: 0 / 0.5516 GB, free: 10.82 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000933/0.4915, allocations: 438.1 kB / 0.552 GB, free: 10.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4916, allocations: 8.031 kB / 0.552 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.275e-05/0.4916, allocations: 11.91 kB / 0.552 GB, free: 10.33 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004464/0.4921, allocations: 204.1 kB / 0.5522 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.4921, allocations: 8 kB / 0.5522 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.526e-05/0.4922, allocations: 11.89 kB / 0.5522 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000138/0.4923, allocations: 28 kB / 0.5522 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.4925, allocations: 73.56 kB / 0.5523 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.4926, allocations: 0 / 0.5523 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.4926, allocations: 3.984 kB / 0.5523 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.4926, allocations: 4 kB / 0.5523 GB, free: 9.957 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000821/0.4934, allocations: 345.1 kB / 0.5526 GB, free: 9.582 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.4936, allocations: 50.59 kB / 0.5527 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.904e-05/0.4937, allocations: 12.98 kB / 0.5527 GB, free: 9.508 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.4937, allocations: 11.92 kB / 0.5527 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.4939, allocations: 63.45 kB / 0.5528 GB, free: 9.422 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.014e-06/0.4939, allocations: 0 / 0.5528 GB, free: 9.422 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002406/0.4941, allocations: 73.53 kB / 0.5529 GB, free: 9.344 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.4942, allocations: 55.31 kB / 0.5529 GB, free: 9.277 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.4943, allocations: 118.7 kB / 0.553 GB, free: 9.152 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.4944, allocations: 29.7 kB / 0.553 GB, free: 9.117 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.793e-05/0.4945, allocations: 166.6 kB / 0.5532 GB, free: 8.949 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.568e-05/0.4945, allocations: 19.88 kB / 0.5532 GB, free: 8.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-06/0.4945, allocations: 0 / 0.5532 GB, free: 8.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4947, allocations: 318.8 kB / 0.5535 GB, free: 8.609 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.327e-05/0.4947, allocations: 20 kB / 0.5535 GB, free: 8.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.163e-05/0.4948, allocations: 33.7 kB / 0.5536 GB, free: 8.551 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.035e-05/0.4949, allocations: 12 kB / 0.5536 GB, free: 8.539 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4949, allocations: 0 / 0.5536 GB, free: 8.539 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001911/0.4951, allocations: 69.62 kB / 0.5537 GB, free: 8.465 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.4951, allocations: 4 kB / 0.5537 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.4951, allocations: 0 / 0.5537 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.4952, allocations: 4 kB / 0.5537 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.4954, allocations: 27.95 kB / 0.5537 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.4954, allocations: 0 / 0.5537 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.4956, allocations: 23.89 kB / 0.5537 GB, free: 8.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.4956, allocations: 8 kB / 0.5537 GB, free: 8.398 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 6.708e-05/0.4957, allocations: 30.69 kB / 0.5538 GB, free: 8.363 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.4957, allocations: 11.89 kB / 0.5538 GB, free: 8.352 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.211e-05/0.4958, allocations: 12.5 kB / 0.5538 GB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4958, allocations: 0 / 0.5538 GB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4958, allocations: 0 / 0.5538 GB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4959, allocations: 0 / 0.5538 GB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.4964, allocations: 323 kB / 0.5541 GB, free: 7.984 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.4964, allocations: 7.984 kB / 0.5541 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.4965, allocations: 12 kB / 0.5541 GB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.4966, allocations: 288 / 0.5541 GB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.4966, allocations: 3.906 kB / 0.5541 GB, free: 7.961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/0.4966, allocations: 0 / 0.5541 GB, free: 7.961 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4966, allocations: 11.86 kB / 0.5541 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003013/0.4969, allocations: 199.6 kB / 0.5543 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.454e-05/0.497, allocations: 85.02 kB / 0.5544 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.4971, allocations: 0 / 0.5544 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.4973, allocations: 28.03 kB / 0.5544 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/0.4974, allocations: 15.98 kB / 0.5544 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.4975, allocations: 3.906 kB / 0.5544 GB, free: 7.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.534e-05/0.4975, allocations: 100.2 kB / 0.5545 GB, free: 7.492 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002916/0.4978, allocations: 19.94 kB / 0.5545 GB, free: 7.473 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001536/0.498, allocations: 95.23 kB / 0.5546 GB, free: 7.367 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001833/0.4982, allocations: 47.94 kB / 0.5547 GB, free: 7.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.4982, allocations: 4.062 kB / 0.5547 GB, free: 7.316 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.956e-05/0.4983, allocations: 24 kB / 0.5547 GB, free: 7.293 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.4987, allocations: 13.08 kB / 0.5547 GB, free: 7.281 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005278/0.4992, allocations: 157.2 kB / 0.5549 GB, free: 7.098 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/0.4996, allocations: 0.7153 MB / 0.5556 GB, free: 6.355 MB / 394.7 MB Notification: Performance of SimCode: time 7.91e-07/0.4996, allocations: 0 / 0.5556 GB, free: 6.355 MB / 394.7 MB Notification: Performance of Templates: time 0.003848/0.5035, allocations: 1.283 MB / 0.5568 GB, free: 5.074 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches