Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001069/0.001069, allocations: 81.86 kB / 21.42 MB, free: 3.078 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.001167/0.001167, allocations: 169.1 kB / 24.82 MB, free: 8.867 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.9277/0.9277, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2604/0.2604, allocations: 32.8 MB / 294.6 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 376.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.143e-05/2.276e-05, allocations: 9.344 kB / 376.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002823/0.002846, allocations: 1.572 MB / 378 MB, free: 2.82 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009455/0.003791, allocations: 0.5414 MB / 378.6 MB, free: 2.273 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.514e-05/0.003856, allocations: 3.938 kB / 378.6 MB, free: 2.27 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.058e-05/0.003887, allocations: 3.938 kB / 378.6 MB, free: 2.266 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.474e-05/0.003982, allocations: 23.78 kB / 378.6 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.004223, allocations: 47.81 kB / 378.7 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00014/0.004363, allocations: 103.6 kB / 378.8 MB, free: 2.094 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.827e-05/0.004451, allocations: 4 kB / 378.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.004638, allocations: 63.88 kB / 378.8 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.685e-05/0.004714, allocations: 35.88 kB / 378.9 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.004735, allocations: 8 kB / 378.9 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.644e-05/0.004782, allocations: 12 kB / 378.9 MB, free: 1.973 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.793e-05/0.00481, allocations: 19.91 kB / 378.9 MB, free: 1.953 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.004846, allocations: 23.98 kB / 378.9 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.004985, allocations: 71.72 kB / 379 MB, free: 1.859 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.004987, allocations: 0 / 379 MB, free: 1.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.004988, allocations: 3.938 kB / 379 MB, free: 1.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.004991, allocations: 4 kB / 379 MB, free: 1.852 MB / 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.0005461/0.005537, allocations: 436.2 kB / 379.4 MB, free: 1.391 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.005579, allocations: 12.03 kB / 379.4 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.005714, allocations: 20.88 kB / 379.5 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.005856, allocations: 132.5 kB / 379.6 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.005878, allocations: 8.375 kB / 379.6 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.005894, allocations: 16.31 kB / 379.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.006045, allocations: 78.91 kB / 379.7 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.006054, allocations: 192 / 379.7 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.006064, allocations: 384 / 379.7 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.006073, allocations: 7.938 kB / 379.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.24e-05/0.006115, allocations: 11.98 kB / 379.7 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004218/0.006537, allocations: 296.3 kB / 380 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.006663, allocations: 66.97 kB / 380.1 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.924e-05/0.006702, allocations: 23.67 kB / 380.1 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.006726, allocations: 8 kB / 380.1 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001167/0.006843, allocations: 80.95 kB / 380.2 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.833e-06/0.006845, allocations: 0 / 380.2 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002804/0.007125, allocations: 144.9 kB / 380.3 MB, free: 416 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.007163, allocations: 55.41 kB / 380.4 MB, free: 348 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.594e-05/0.007259, allocations: 178.1 kB / 380.5 MB, free: 152 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.007282, allocations: 37.64 kB / 380.6 MB, free: 108 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.007355, allocations: 139.1 kB / 380.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.007399, allocations: 39.67 kB / 380.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.017e-05/0.007459, allocations: 47.34 kB / 380.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.007597, allocations: 0.4923 MB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.659e-05/0.007634, allocations: 15.98 kB / 381.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.741e-05/0.007701, allocations: 73.47 kB / 381.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.007813, allocations: 94.34 kB / 381.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.007815, allocations: 0 / 381.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001758/0.007991, allocations: 125.5 kB / 381.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.008005, allocations: 4 kB / 381.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.008012, allocations: 4 kB / 381.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.008028, allocations: 7.969 kB / 381.6 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.008134, allocations: 23.94 kB / 381.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.008141, allocations: 7.984 kB / 381.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.138e-05/0.008192, allocations: 11.95 kB / 381.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.008203, allocations: 4 kB / 381.7 MB, free: 14.95 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 0.0001049/0.008308, allocations: 178.4 kB / 381.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.679e-05/0.008334, allocations: 24.03 kB / 381.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.008365, allocations: 8.438 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.008368, allocations: 4 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.00837, allocations: 0 / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.008374, allocations: 4 kB / 381.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003928/0.008767, allocations: 385.8 kB / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.00877, allocations: 0 / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.684e-05/0.008816, allocations: 11.98 kB / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.00882, allocations: 0 / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.008831, allocations: 4 kB / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.008833, allocations: 0 / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.008834, allocations: 4 kB / 382.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002459/0.00908, allocations: 291.2 kB / 382.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.363e-05/0.009093, allocations: 7.953 kB / 382.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.009113, allocations: 4 kB / 382.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.934e-05/0.009213, allocations: 15.92 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.009248, allocations: 7.984 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.009265, allocations: 4 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.222e-05/0.009327, allocations: 135.2 kB / 382.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.009327, allocations: 0 / 382.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002613/0.009588, allocations: 20 kB / 382.7 MB, free: 13.8 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 0.0001/0.009688, allocations: 115.1 kB / 382.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001446/0.009833, allocations: 71.59 kB / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.009835, allocations: 0 / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.438e-05/0.009899, allocations: 47.58 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.01018, allocations: 16.75 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005335/0.01071, allocations: 194.8 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.18e-05/0.01075, allocations: 67.34 kB / 383.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.213e-05/0.0108, allocations: 16.95 kB / 383.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.467e-05/0.01087, allocations: 82.19 kB / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01087, allocations: 0 / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of Templates: time 0.003716/0.01459, allocations: 1.166 MB / 384.5 MB, free: 12 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.855099370703101]