Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold") [: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.002445/0.002445, allocations: 176.2 kB / 8.146 MB, free: 2.066 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.713/1.713, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001591/0.001591, allocations: 90.31 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.2575/0.2575, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.944e-06/8.105e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2743, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1699/0.4442, allocations: 84.91 MB / 0.5483 GB, free: 14.19 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.4446, allocations: 55.97 kB / 0.5483 GB, free: 14.13 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008256/0.4528, allocations: 1.171 MB / 0.5495 GB, free: 12.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.4529, allocations: 4 kB / 0.5495 GB, free: 12.95 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008894/0.4538, allocations: 386.2 kB / 0.5498 GB, free: 12.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.4539, allocations: 8.031 kB / 0.5499 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.643e-05/0.454, allocations: 7.906 kB / 0.5499 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.4541, allocations: 167 kB / 0.55 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.4542, allocations: 4 kB / 0.55 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.4542, allocations: 16.17 kB / 0.55 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001618/0.4544, allocations: 31.94 kB / 0.5501 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.4546, allocations: 75.92 kB / 0.5501 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.4546, allocations: 3.984 kB / 0.5501 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.4547, allocations: 3.984 kB / 0.5502 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.4547, allocations: 8 kB / 0.5502 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006279/0.4553, allocations: 285.3 kB / 0.5504 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.4556, allocations: 86.42 kB / 0.5505 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.4557, allocations: 36.03 kB / 0.5505 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.4557, allocations: 4 kB / 0.5506 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.4559, allocations: 87.28 kB / 0.5506 GB, free: 11.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 2.314e-06/0.456, allocations: 0 / 0.5506 GB, free: 11.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003533/0.4563, allocations: 105.7 kB / 0.5507 GB, free: 11.51 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.4564, allocations: 59.41 kB / 0.5508 GB, free: 11.44 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.4565, allocations: 109.2 kB / 0.5509 GB, free: 11.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.4566, allocations: 25.7 kB / 0.5509 GB, free: 11.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.114e-05/0.4566, allocations: 154.8 kB / 0.5511 GB, free: 11.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/0.4567, allocations: 39.48 kB / 0.5511 GB, free: 11.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-06/0.4567, allocations: 0 / 0.5511 GB, free: 11.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.4569, allocations: 326.7 kB / 0.5514 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.804e-05/0.457, allocations: 28.38 kB / 0.5514 GB, free: 10.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.4571, allocations: 65.72 kB / 0.5515 GB, free: 10.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.4573, allocations: 31.92 kB / 0.5515 GB, free: 10.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4573, allocations: 4 kB / 0.5515 GB, free: 10.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003302/0.4576, allocations: 133.6 kB / 0.5517 GB, free: 10.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.4577, allocations: 4 kB / 0.5517 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.4577, allocations: 0 / 0.5517 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.4577, allocations: 4 kB / 0.5517 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.4579, allocations: 27.92 kB / 0.5517 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.4579, allocations: 4 kB / 0.5517 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.821e-05/0.458, allocations: 12.06 kB / 0.5517 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.4581, allocations: 4 kB / 0.5517 GB, free: 10.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.779e-05/0.4582, allocations: 37.11 kB / 0.5518 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.977e-05/0.4582, allocations: 11.91 kB / 0.5518 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.721e-05/0.4583, allocations: 8.422 kB / 0.5518 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.4583, allocations: 4 kB / 0.5518 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.4583, allocations: 0 / 0.5518 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4583, allocations: 3.938 kB / 0.5518 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006363/0.459, allocations: 367.8 kB / 0.5521 GB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.459, allocations: 8.281 kB / 0.5521 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-05/0.4591, allocations: 7.984 kB / 0.5522 GB, free: 9.941 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.4591, allocations: 4 kB / 0.5522 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.4591, allocations: 4 kB / 0.5522 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.4592, allocations: 7.875 kB / 0.5522 GB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4592, allocations: 0 / 0.5522 GB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003147/0.4595, allocations: 214.1 kB / 0.5524 GB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.589e-05/0.4596, allocations: 85.02 kB / 0.5525 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.4596, allocations: 0 / 0.5525 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.4598, allocations: 27.81 kB / 0.5525 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.4599, allocations: 7.984 kB / 0.5525 GB, free: 9.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.4599, allocations: 4 kB / 0.5525 GB, free: 9.562 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.509e-05/0.46, allocations: 95.27 kB / 0.5526 GB, free: 9.469 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003163/0.4603, allocations: 16 kB / 0.5526 GB, free: 9.453 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001476/0.4605, allocations: 103.2 kB / 0.5527 GB, free: 9.344 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.4607, allocations: 83.92 kB / 0.5528 GB, free: 9.258 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.4608, allocations: 0 / 0.5528 GB, free: 9.258 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.4609, allocations: 40 kB / 0.5528 GB, free: 9.219 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.4612, allocations: 17.67 kB / 0.5528 GB, free: 9.203 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004909/0.4617, allocations: 153.5 kB / 0.553 GB, free: 9.023 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003745/0.4621, allocations: 0.7153 MB / 0.5537 GB, free: 8.281 MB / 394.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4621, allocations: 0 / 0.5537 GB, free: 8.281 MB / 394.7 MB Notification: Performance of Templates: time 0.003695/0.4658, allocations: 1.184 MB / 0.5548 GB, free: 7.098 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches