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.001489/0.001489, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.001608/0.001608, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 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 1.564/1.564, allocations: 230.6 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.2276/0.2276, allocations: 44.94 MB / 359.6 MB, free: 6.07 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 78.39 kB / 0.4942 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.38, allocations: 65.47 MB / 0.5582 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003356/0.3833, allocations: 1.527 MB / 0.5597 GB, free: 6.105 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.3845, allocations: 0.5182 MB / 0.5602 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.086e-05/0.3845, allocations: 0 / 0.5602 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.502e-05/0.3846, allocations: 7.938 kB / 0.5602 GB, free: 5.574 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.736e-05/0.3847, allocations: 19.86 kB / 0.5602 GB, free: 5.555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.385, allocations: 51.81 kB / 0.5603 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000181/0.3852, allocations: 99.69 kB / 0.5603 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.3853, allocations: 4 kB / 0.5603 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.3854, allocations: 47.84 kB / 0.5604 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.919e-05/0.3855, allocations: 35.83 kB / 0.5604 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.3856, allocations: 8 kB / 0.5604 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.011e-05/0.3856, allocations: 12 kB / 0.5604 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.519e-05/0.3857, allocations: 23.91 kB / 0.5605 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.495e-05/0.3857, allocations: 31.84 kB / 0.5605 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.3859, allocations: 94.31 kB / 0.5606 GB, free: 5.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3859, allocations: 0 / 0.5606 GB, free: 5.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3859, allocations: 0 / 0.5606 GB, free: 5.156 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3859, allocations: 0 / 0.5606 GB, free: 5.156 MB / 398.1 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.0007348/0.3867, allocations: 326 kB / 0.5609 GB, free: 4.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3867, allocations: 12.03 kB / 0.5609 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.3868, allocations: 20.88 kB / 0.5609 GB, free: 4.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.3871, allocations: 134.4 kB / 0.5611 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.3871, allocations: 4.375 kB / 0.5611 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.652e-05/0.3872, allocations: 12.36 kB / 0.5611 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.3874, allocations: 89.95 kB / 0.5612 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3874, allocations: 0 / 0.5612 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3874, allocations: 0 / 0.5612 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3874, allocations: 4 kB / 0.5612 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.3876, allocations: 51.91 kB / 0.5612 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005558/0.3881, allocations: 268.4 kB / 0.5615 GB, free: 4.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.3883, allocations: 78.48 kB / 0.5615 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3885, allocations: 48.83 kB / 0.5616 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.3885, allocations: 3.938 kB / 0.5616 GB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.3887, allocations: 107.3 kB / 0.5617 GB, free: 3.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.3887, allocations: 224 / 0.5617 GB, free: 3.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004943/0.3892, allocations: 201.4 kB / 0.5619 GB, free: 3.707 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.3892, allocations: 63.34 kB / 0.562 GB, free: 3.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3894, allocations: 121.8 kB / 0.5621 GB, free: 3.504 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.3894, allocations: 33.7 kB / 0.5621 GB, free: 3.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.871e-05/0.3895, allocations: 92.36 kB / 0.5622 GB, free: 3.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.342e-05/0.3895, allocations: 43.72 kB / 0.5622 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-05/0.3896, allocations: 37.7 kB / 0.5623 GB, free: 3.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.3898, allocations: 322.8 kB / 0.5626 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.992e-05/0.3899, allocations: 35.97 kB / 0.5626 GB, free: 2.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.3901, allocations: 88.22 kB / 0.5627 GB, free: 2.824 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.3903, allocations: 116.2 kB / 0.5628 GB, free: 2.695 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3903, allocations: 0 / 0.5628 GB, free: 2.695 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003009/0.3906, allocations: 153.5 kB / 0.563 GB, free: 2.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3906, allocations: 8.125 kB / 0.563 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3906, allocations: 0 / 0.563 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3907, allocations: 4 kB / 0.563 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.3908, allocations: 27.92 kB / 0.563 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3908, allocations: 0 / 0.563 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.014e-05/0.3909, allocations: 19.88 kB / 0.563 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.3909, allocations: 11.98 kB / 0.563 GB, free: 2.469 MB / 398.1 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.0001251/0.391, allocations: 127.8 kB / 0.5631 GB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.391, allocations: 7.953 kB / 0.5631 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.3911, allocations: 16.42 kB / 0.5632 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.3911, allocations: 4 kB / 0.5632 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3911, allocations: 0 / 0.5632 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3911, allocations: 3.938 kB / 0.5632 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005802/0.3917, allocations: 393.5 kB / 0.5635 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3917, allocations: 0 / 0.5635 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.153e-05/0.3917, allocations: 8 kB / 0.5636 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3917, allocations: 0 / 0.5636 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.3917, allocations: 7.922 kB / 0.5636 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3917, allocations: 3.938 kB / 0.5636 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3917, allocations: 8 kB / 0.5636 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.3921, allocations: 263.4 kB / 0.5638 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.325e-05/0.3921, allocations: 3.953 kB / 0.5638 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.3922, allocations: 7.938 kB / 0.5638 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3923, allocations: 11.98 kB / 0.5638 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.3923, allocations: 7.984 kB / 0.5639 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.3923, allocations: 11.98 kB / 0.5639 GB, free: 1.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.494e-05/0.3924, allocations: 99.2 kB / 0.564 GB, free: 1.438 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3924, allocations: 0 / 0.564 GB, free: 1.438 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002486/0.3927, allocations: 24 kB / 0.564 GB, free: 1.414 MB / 398.1 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.0001256/0.3928, allocations: 103.2 kB / 0.5641 GB, free: 1.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.3931, allocations: 103.8 kB / 0.5642 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3931, allocations: 0 / 0.5642 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.3932, allocations: 51.97 kB / 0.5642 GB, free: 1.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.3935, allocations: 14.64 kB / 0.5642 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005105/0.394, allocations: 241.5 kB / 0.5645 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.595e-05/0.3941, allocations: 87.33 kB / 0.5646 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.603e-05/0.3941, allocations: 23.42 kB / 0.5646 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3941, allocations: 0 / 0.5646 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of Templates: time 0.00331/0.3975, allocations: 1.293 MB / 0.5658 GB, free: 15.45 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 7.755655573215336]