Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009263/0.0009264, allocations: 186.7 kB / 7.806 MB, free: 2.492 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.052/1.052, allocations: 205.2 MB / 213.4 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.000865/0.0008651, allocations: 90.2 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.154/0.154, allocations: 43.48 MB / 352.8 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.961e-06/5.971e-06, allocations: 4 kB / 417.7 MB, free: 40.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2066, allocations: 58.84 MB / 476.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09883/0.3054, allocations: 84.92 MB / 0.5483 GB, free: 14.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001769/0.3057, allocations: 63.97 kB / 0.5484 GB, free: 13.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003832/0.3095, allocations: 1.164 MB / 0.5495 GB, free: 12.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.3095, allocations: 4 kB / 0.5495 GB, free: 12.81 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.0004523/0.31, allocations: 378.2 kB / 0.5499 GB, free: 12.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.31, allocations: 12.03 kB / 0.5499 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.3101, allocations: 7.906 kB / 0.5499 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.3102, allocations: 175.1 kB / 0.5501 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.3103, allocations: 7.984 kB / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.3103, allocations: 4 kB / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.448e-05/0.3104, allocations: 28 kB / 0.5501 GB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.3105, allocations: 79.53 kB / 0.5502 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.3105, allocations: 0 / 0.5502 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.3105, allocations: 4 kB / 0.5502 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3106, allocations: 0 / 0.5502 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004341/0.311, allocations: 297.2 kB / 0.5505 GB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.3111, allocations: 78.55 kB / 0.5505 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.602e-05/0.3112, allocations: 36.14 kB / 0.5506 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.3113, allocations: 4 kB / 0.5506 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.3114, allocations: 87.28 kB / 0.5507 GB, free: 11.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.3114, allocations: 0 / 0.5507 GB, free: 11.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002465/0.3116, allocations: 105.6 kB / 0.5508 GB, free: 11.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.3117, allocations: 63.41 kB / 0.5508 GB, free: 11.31 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.121e-05/0.3118, allocations: 105.2 kB / 0.5509 GB, free: 11.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3118, allocations: 25.7 kB / 0.5509 GB, free: 11.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.275e-05/0.3119, allocations: 96.41 kB / 0.551 GB, free: 11.06 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.3119, allocations: 31.56 kB / 0.5511 GB, free: 11.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.3119, allocations: 384 / 0.5511 GB, free: 11.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3121, allocations: 326.7 kB / 0.5514 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.02e-05/0.3121, allocations: 24.38 kB / 0.5514 GB, free: 10.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.19e-05/0.3122, allocations: 65.7 kB / 0.5515 GB, free: 10.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.886e-05/0.3123, allocations: 43.86 kB / 0.5515 GB, free: 10.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3123, allocations: 0 / 0.5515 GB, free: 10.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001956/0.3125, allocations: 125.7 kB / 0.5516 GB, free: 10.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3125, allocations: 8 kB / 0.5516 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.3125, allocations: 4.156 kB / 0.5516 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.3125, allocations: 4 kB / 0.5516 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.3127, allocations: 27.92 kB / 0.5517 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3127, allocations: 0 / 0.5517 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.578e-05/0.3128, allocations: 19.89 kB / 0.5517 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.3128, allocations: 4 kB / 0.5517 GB, free: 10.36 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 9.173e-05/0.3129, allocations: 112.3 kB / 0.5518 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.3129, allocations: 7.906 kB / 0.5518 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.3129, allocations: 20.34 kB / 0.5518 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3129, allocations: 0 / 0.5518 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.313, allocations: 3.984 kB / 0.5518 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.313, allocations: 0 / 0.5518 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000392/0.3134, allocations: 375 kB / 0.5522 GB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3134, allocations: 0 / 0.5522 GB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.1e-05/0.3134, allocations: 11.98 kB / 0.5522 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3135, allocations: 4 kB / 0.5522 GB, free: 9.781 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.3135, allocations: 8 kB / 0.5522 GB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3135, allocations: 0 / 0.5522 GB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3135, allocations: 0 / 0.5522 GB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001945/0.3137, allocations: 209.8 kB / 0.5524 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/0.3137, allocations: 85.02 kB / 0.5525 GB, free: 9.453 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.3138, allocations: 0 / 0.5525 GB, free: 9.453 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.3139, allocations: 23.92 kB / 0.5525 GB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.3139, allocations: 7.984 kB / 0.5525 GB, free: 9.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.3139, allocations: 0 / 0.5525 GB, free: 9.422 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.425e-05/0.314, allocations: 91.22 kB / 0.5526 GB, free: 9.332 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002407/0.3142, allocations: 23.98 kB / 0.5526 GB, free: 9.309 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 8.872e-05/0.3143, allocations: 99.52 kB / 0.5527 GB, free: 9.203 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001601/0.3145, allocations: 84.17 kB / 0.5528 GB, free: 9.121 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.3145, allocations: 4.062 kB / 0.5528 GB, free: 9.117 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.756e-05/0.3146, allocations: 47.88 kB / 0.5528 GB, free: 9.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001869/0.3148, allocations: 7.906 kB / 0.5529 GB, free: 9.062 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003335/0.3151, allocations: 123.7 kB / 0.553 GB, free: 8.918 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003093/0.3154, allocations: 0.7153 MB / 0.5537 GB, free: 8.176 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3155, allocations: 0 / 0.5537 GB, free: 8.176 MB / 394.7 MB Notification: Performance of Templates: time 0.002712/0.3182, allocations: 0.9764 MB / 0.5546 GB, free: 7.203 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches