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/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.002147/0.002147, allocations: 88.23 kB / 20.2 MB, free: 4.227 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.002719/0.002719, allocations: 157.7 kB / 23.51 MB, free: 0.9219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 158.6 MB / 185.3 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2281/0.2281, allocations: 32.37 MB / 270 MB, free: 14.88 MB / 266.7 MB " [Timeout remaining time 180] 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 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 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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 346.9 MB, free: 9.832 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.556e-05, allocations: 6.312 kB / 346.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002215/0.002241, allocations: 1.514 MB / 348.4 MB, free: 8.305 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.003059, allocations: 0.4996 MB / 348.9 MB, free: 7.797 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.004e-05/0.003119, allocations: 7.938 kB / 348.9 MB, free: 7.789 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.43e-05/0.003164, allocations: 7.922 kB / 348.9 MB, free: 7.781 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.601e-05/0.00326, allocations: 7.875 kB / 349 MB, free: 7.773 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.003486, allocations: 35.89 kB / 349 MB, free: 7.738 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.003595, allocations: 87.69 kB / 349.1 MB, free: 7.652 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.003695, allocations: 15.92 kB / 349.1 MB, free: 7.637 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.003849, allocations: 59.88 kB / 349.2 MB, free: 7.578 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.621e-05/0.003925, allocations: 31.89 kB / 349.2 MB, free: 7.547 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.619e-05/0.003951, allocations: 8 kB / 349.2 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.556e-05/0.003967, allocations: 8 kB / 349.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.586e-05/0.003993, allocations: 19.92 kB / 349.2 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.866e-05/0.004041, allocations: 31.84 kB / 349.2 MB, free: 7.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.004178, allocations: 75.77 kB / 349.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.004181, allocations: 0 / 349.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.004182, allocations: 0 / 349.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.004187, allocations: 3.984 kB / 349.3 MB, free: 7.402 MB / 282.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.0005646/0.004752, allocations: 326 kB / 349.6 MB, free: 7.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.004785, allocations: 8.031 kB / 349.7 MB, free: 7.047 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.052e-05/0.004846, allocations: 16.88 kB / 349.7 MB, free: 7.031 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.371e-05/0.00493, allocations: 121.6 kB / 349.8 MB, free: 6.887 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.004948, allocations: 8.375 kB / 349.8 MB, free: 6.879 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.004964, allocations: 4.375 kB / 349.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.005159, allocations: 86.2 kB / 349.9 MB, free: 6.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.00517, allocations: 4.188 kB / 349.9 MB, free: 6.781 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.005183, allocations: 4.375 kB / 349.9 MB, free: 6.777 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.005189, allocations: 3.938 kB / 349.9 MB, free: 6.773 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.005308, allocations: 43.97 kB / 349.9 MB, free: 6.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.005755, allocations: 256.4 kB / 350.2 MB, free: 6.449 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.005918, allocations: 74.55 kB / 350.3 MB, free: 6.367 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.857e-05/0.006006, allocations: 44.84 kB / 350.3 MB, free: 6.32 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.006029, allocations: 4 kB / 350.3 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.006211, allocations: 107.6 kB / 350.4 MB, free: 6.199 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.006212, allocations: 3.938 kB / 350.4 MB, free: 6.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004031/0.006615, allocations: 193.5 kB / 350.6 MB, free: 6 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.006642, allocations: 55.41 kB / 350.7 MB, free: 5.934 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.51e-05/0.006707, allocations: 125.8 kB / 350.8 MB, free: 5.801 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.006722, allocations: 25.7 kB / 350.8 MB, free: 5.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.61e-05/0.006748, allocations: 92.42 kB / 350.9 MB, free: 5.676 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.006779, allocations: 39.72 kB / 350.9 MB, free: 5.637 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.006825, allocations: 37.7 kB / 351 MB, free: 5.594 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.164e-05/0.006866, allocations: 322.8 kB / 351.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.016e-05/0.006956, allocations: 35.98 kB / 351.3 MB, free: 5.234 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.493e-05/0.007041, allocations: 85 kB / 351.4 MB, free: 5.133 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.007198, allocations: 121 kB / 351.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.0072, allocations: 0 / 351.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002377/0.007438, allocations: 173.4 kB / 351.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.007451, allocations: 4 kB / 351.7 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.007457, allocations: 3.984 kB / 351.7 MB, free: 4.812 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.007477, allocations: 4 kB / 351.7 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.007582, allocations: 19.94 kB / 351.7 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.007588, allocations: 3.984 kB / 351.7 MB, free: 4.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.42e-05/0.007652, allocations: 11.94 kB / 351.7 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.007663, allocations: 8.156 kB / 351.8 MB, free: 4.766 MB / 282.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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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) * 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 6.74e-05/0.007731, allocations: 135.7 kB / 351.9 MB, free: 4.621 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.007757, allocations: 19.94 kB / 351.9 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.537e-05/0.007782, allocations: 8.438 kB / 351.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.007786, allocations: 7.984 kB / 351.9 MB, free: 4.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.007791, allocations: 0 / 351.9 MB, free: 4.59 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.007793, allocations: 0 / 351.9 MB, free: 4.59 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000411/0.008204, allocations: 388.4 kB / 352.3 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.008206, allocations: 0 / 352.3 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.348e-05/0.00826, allocations: 11.98 kB / 352.3 MB, free: 4.164 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.008263, allocations: 4 kB / 352.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.008274, allocations: 0 / 352.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.008275, allocations: 0 / 352.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.008277, allocations: 3.938 kB / 352.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002624/0.00854, allocations: 267.4 kB / 352.6 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.468e-05/0.008554, allocations: 11.88 kB / 352.6 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.008578, allocations: 8 kB / 352.6 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.008692, allocations: 11.98 kB / 352.6 MB, free: 3.848 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.817e-05/0.00874, allocations: 11.92 kB / 352.6 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.008759, allocations: 8 kB / 352.6 MB, free: 3.828 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.02e-05/0.008809, allocations: 91.27 kB / 352.7 MB, free: 3.738 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008809, allocations: 0 / 352.7 MB, free: 3.738 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002637/0.009073, allocations: 24 kB / 352.7 MB, free: 3.715 MB / 282.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 8.002e-05/0.009153, allocations: 99.84 kB / 352.8 MB, free: 3.605 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.009376, allocations: 99.83 kB / 352.9 MB, free: 3.508 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.009378, allocations: 0 / 352.9 MB, free: 3.508 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.706e-05/0.009475, allocations: 52.27 kB / 353 MB, free: 3.457 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.00977, allocations: 21.98 kB / 353 MB, free: 3.438 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003857/0.01016, allocations: 203.9 kB / 353.2 MB, free: 3.211 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.503e-05/0.0102, allocations: 79.33 kB / 353.3 MB, free: 3.113 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.843e-05/0.01024, allocations: 8.969 kB / 353.3 MB, free: 3.105 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.01028, allocations: 16.5 kB / 353.3 MB, free: 3.09 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01028, allocations: 0 / 353.3 MB, free: 3.09 MB / 282.7 MB Notification: Performance of Templates: time 0.003584/0.01386, allocations: 1.047 MB / 354.4 MB, free: 2.059 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.8615163291106]