Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002112/0.002117, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001105/0.001105, allocations: 78.66 kB / 267.5 MB, free: 14.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2702/0.2702, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.668e-05/3.696e-05, allocations: 0 / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4691/0.5802, allocations: 85.64 MB / 0.5564 GB, free: 2.023 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.5805, allocations: 68.19 kB / 0.5565 GB, free: 1.992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006009/0.5865, allocations: 1.472 MB / 0.5579 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.5866, allocations: 4 kB / 0.5579 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.5866, allocations: 0 / 0.5579 GB, free: 0.6992 MB / 362.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.0005488/0.5872, allocations: 384.8 kB / 0.5583 GB, free: 292 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.5872, allocations: 8.031 kB / 0.5583 GB, free: 284 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.202e-05/0.5873, allocations: 11.91 kB / 0.5583 GB, free: 272 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.5874, allocations: 170.6 kB / 0.5585 GB, free: 64 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.5874, allocations: 7.984 kB / 0.5585 GB, free: 56 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.5875, allocations: 11.44 kB / 0.5585 GB, free: 48 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.5877, allocations: 78.28 kB / 0.5586 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.5877, allocations: 3.984 kB / 0.5586 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.5878, allocations: 0 / 0.5586 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.5878, allocations: 7.938 kB / 0.5586 GB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.5879, allocations: 33.88 kB / 0.5586 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007359/0.5887, allocations: 338.6 kB / 0.5589 GB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.5889, allocations: 81.06 kB / 0.559 GB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.589, allocations: 37.61 kB / 0.559 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.5891, allocations: 4 kB / 0.559 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.5893, allocations: 96.62 kB / 0.5591 GB, free: 15.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.635e-06/0.5893, allocations: 0 / 0.5591 GB, free: 15.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004421/0.5898, allocations: 142.6 kB / 0.5593 GB, free: 15.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.5899, allocations: 59.34 kB / 0.5593 GB, free: 15.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.59, allocations: 107.8 kB / 0.5594 GB, free: 15.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.5901, allocations: 32.69 kB / 0.5595 GB, free: 15.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.494e-05/0.5902, allocations: 161 kB / 0.5596 GB, free: 14.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.593e-05/0.5902, allocations: 37.59 kB / 0.5597 GB, free: 14.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/0.5903, allocations: 7.25 kB / 0.5597 GB, free: 14.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.5904, allocations: 321.9 kB / 0.56 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.028e-05/0.5905, allocations: 29.75 kB / 0.56 GB, free: 14.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.5907, allocations: 70.39 kB / 0.5601 GB, free: 14.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.5908, allocations: 47 kB / 0.5601 GB, free: 14.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.5908, allocations: 0 / 0.5601 GB, free: 14.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003417/0.5912, allocations: 140.9 kB / 0.5602 GB, free: 14.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.5912, allocations: 4 kB / 0.5602 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.5912, allocations: 0 / 0.5602 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.5912, allocations: 4 kB / 0.5602 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.5915, allocations: 31.45 kB / 0.5603 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.5915, allocations: 4 kB / 0.5603 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.5916, allocations: 19.16 kB / 0.5603 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.5917, allocations: 4 kB / 0.5603 GB, free: 14.26 MB / 378.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 0.0001311/0.5918, allocations: 122.2 kB / 0.5604 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.5918, allocations: 11.91 kB / 0.5604 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.5919, allocations: 8.188 kB / 0.5604 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.5919, allocations: 4 kB / 0.5604 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.5919, allocations: 7.984 kB / 0.5605 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.592, allocations: 0 / 0.5605 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007294/0.5927, allocations: 426 kB / 0.5609 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.5927, allocations: 4 kB / 0.5609 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.5928, allocations: 15.41 kB / 0.5609 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.5929, allocations: 4 kB / 0.5609 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.5929, allocations: 0 / 0.5609 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.5929, allocations: 7.891 kB / 0.5609 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5929, allocations: 0 / 0.5609 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000391/0.5933, allocations: 237.4 kB / 0.5611 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.789e-05/0.5934, allocations: 88.95 kB / 0.5612 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.5934, allocations: 3.984 kB / 0.5612 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.5936, allocations: 11.38 kB / 0.5612 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/0.5937, allocations: 11.94 kB / 0.5612 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.5937, allocations: 7.984 kB / 0.5612 GB, free: 13.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.055e-05/0.5938, allocations: 94.59 kB / 0.5613 GB, free: 13.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5938, allocations: 4 kB / 0.5613 GB, free: 13.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003491/0.5942, allocations: 22 kB / 0.5613 GB, free: 13.19 MB / 378.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.0001584/0.5943, allocations: 109.7 kB / 0.5615 GB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002898/0.5946, allocations: 93.38 kB / 0.5615 GB, free: 13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5947, allocations: 0 / 0.5615 GB, free: 13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.5948, allocations: 50.84 kB / 0.5616 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.5951, allocations: 15.41 kB / 0.5616 GB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004975/0.5956, allocations: 154.3 kB / 0.5618 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.5959, allocations: 0.6926 MB / 0.5624 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.557e-05/0.596, allocations: 19.25 kB / 0.5624 GB, free: 12.05 MB / 378.7 MB Notification: Performance of SimCode: time 3.186e-06/0.596, allocations: 3.938 kB / 0.5624 GB, free: 12.05 MB / 378.7 MB Notification: Performance of Templates: time 0.003833/0.5999, allocations: 1.188 MB / 0.5636 GB, free: 10.88 MB / 378.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/jenkins1/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