Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009188/0.0009188, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 169.5 kB / 24.99 MB, free: 8.789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9834/0.9834, allocations: 177.1 MB / 205.3 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2849/0.2849, allocations: 34.26 MB / 296 MB, free: 0.7695 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.032e-06/1.032e-06, allocations: 0 / 378 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.989e-05/2.092e-05, allocations: 2.312 kB / 378 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001798/0.001819, allocations: 1.575 MB / 379.6 MB, free: 1.395 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006725/0.002492, allocations: 0.5452 MB / 380.1 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.469e-05/0.002546, allocations: 3.938 kB / 380.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.049e-05/0.002577, allocations: 7.922 kB / 380.1 MB, free: 0.832 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.106e-05/0.002658, allocations: 11.86 kB / 380.2 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.002895, allocations: 51.81 kB / 380.2 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.003028, allocations: 91.7 kB / 380.3 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.687e-05/0.003115, allocations: 11.92 kB / 380.3 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.003256, allocations: 67.86 kB / 380.4 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.926e-05/0.003315, allocations: 27.91 kB / 380.4 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.003333, allocations: 12 kB / 380.4 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.729e-05/0.00337, allocations: 8 kB / 380.4 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.388e-05/0.003394, allocations: 23.91 kB / 380.4 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.674e-05/0.00343, allocations: 27.91 kB / 380.5 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.00356, allocations: 71.72 kB / 380.5 MB, free: 444 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.003562, allocations: 0 / 380.5 MB, free: 444 kB / 346.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.003563, allocations: 0 / 380.5 MB, free: 444 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.003567, allocations: 0 / 380.5 MB, free: 444 kB / 346.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.0004901/0.004057, allocations: 444.4 kB / 381 MB, free: 15.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.004089, allocations: 8.031 kB / 381 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.004193, allocations: 20.89 kB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.004333, allocations: 132.5 kB / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.004353, allocations: 8.375 kB / 381.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.004367, allocations: 8.312 kB / 381.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.004498, allocations: 86.91 kB / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/0.004504, allocations: 192 / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.004515, allocations: 8.359 kB / 381.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.004523, allocations: 7.938 kB / 381.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.618e-05/0.00457, allocations: 19.48 kB / 381.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003525/0.004922, allocations: 315.6 kB / 381.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.005036, allocations: 74.97 kB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.858e-05/0.005075, allocations: 23.67 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.005092, allocations: 4 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.544e-05/0.005188, allocations: 88.95 kB / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.012e-06/0.005189, allocations: 0 / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002421/0.005431, allocations: 153.5 kB / 381.9 MB, free: 14.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.00547, allocations: 59.53 kB / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.984e-05/0.00555, allocations: 173.9 kB / 382.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.005567, allocations: 33.7 kB / 382.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.538e-05/0.005612, allocations: 139.2 kB / 382.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.005645, allocations: 39.67 kB / 382.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.582e-05/0.005691, allocations: 43.36 kB / 382.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.005797, allocations: 0.4962 MB / 382.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.211e-05/0.00583, allocations: 15.98 kB / 382.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.883e-05/0.005888, allocations: 78.36 kB / 383 MB, free: 13.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.247e-05/0.005981, allocations: 102.4 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.005984, allocations: 4 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001356/0.006119, allocations: 132.9 kB / 383.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.006131, allocations: 4 kB / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.006135, allocations: 0 / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.006149, allocations: 11.97 kB / 383.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.046e-05/0.006229, allocations: 28.06 kB / 383.3 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.912e-06/0.006235, allocations: 3.984 kB / 383.3 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.156e-05/0.006267, allocations: 16.17 kB / 383.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.006275, allocations: 8 kB / 383.3 MB, free: 13.44 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: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.617e-05/0.006351, allocations: 178.3 kB / 383.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.006367, allocations: 19.94 kB / 383.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.411e-05/0.006392, allocations: 12.44 kB / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.006393, allocations: 0 / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.006397, allocations: 0 / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.006402, allocations: 4 kB / 383.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.006709, allocations: 417.2 kB / 383.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.00671, allocations: 0 / 383.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.465e-05/0.006735, allocations: 4 kB / 383.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.006737, allocations: 4 kB / 383.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.006747, allocations: 7.984 kB / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.006748, allocations: 0 / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.006749, allocations: 0 / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001756/0.006925, allocations: 291.6 kB / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.797e-06/0.006934, allocations: 7.953 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.006951, allocations: 3.984 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.518e-05/0.007006, allocations: 16 kB / 384.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.007042, allocations: 11.92 kB / 384.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.007056, allocations: 7.984 kB / 384.2 MB, free: 12.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.441e-05/0.007101, allocations: 147.5 kB / 384.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007101, allocations: 0 / 384.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001582/0.007259, allocations: 20 kB / 384.4 MB, free: 12.23 MB / 362.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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.983e-05/0.007329, allocations: 99.25 kB / 384.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.007463, allocations: 79.58 kB / 384.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.007464, allocations: 256 / 384.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.12e-05/0.007515, allocations: 50.48 kB / 384.6 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.007708, allocations: 19.92 kB / 384.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004652/0.008173, allocations: 206.5 kB / 384.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.979e-05/0.008213, allocations: 71.22 kB / 384.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.924e-05/0.008242, allocations: 8.969 kB / 384.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.251e-05/0.008275, allocations: 20.48 kB / 385 MB, free: 11.63 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.008276, allocations: 4 kB / 385 MB, free: 11.62 MB / 362.7 MB Notification: Performance of Templates: time 0.002486/0.01076, allocations: 1.083 MB / 386 MB, free: 10.56 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.123251817189157]