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.0008755/0.0008755, allocations: 87.62 kB / 21.43 MB, free: 3.125 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.003832/0.003832, allocations: 160.8 kB / 24.7 MB, free: 9.414 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.9282/0.9282, allocations: 177.1 MB / 205 MB, free: 5.727 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.2683/0.2683, allocations: 32.79 MB / 294.2 MB, free: 1.203 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.633e-06/1.633e-06, allocations: 0 / 440.8 MB, free: 3.77 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.351e-05, allocations: 7.766 kB / 440.8 MB, free: 3.762 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001841/0.001864, allocations: 1.534 MB / 442.4 MB, free: 2.215 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008881/0.002752, allocations: 0.522 MB / 442.9 MB, free: 1.688 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.002e-05/0.002812, allocations: 0 / 442.9 MB, free: 1.688 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.343e-05/0.002846, allocations: 11.92 kB / 442.9 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.853e-05/0.002934, allocations: 19.8 kB / 442.9 MB, free: 1.656 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.003222, allocations: 51.75 kB / 443 MB, free: 1.605 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.003368, allocations: 95.69 kB / 443.1 MB, free: 1.512 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.003487, allocations: 15.98 kB / 443.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.003645, allocations: 59.81 kB / 443.1 MB, free: 1.438 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.454e-05/0.00372, allocations: 27.91 kB / 443.2 MB, free: 1.41 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.437e-05/0.003744, allocations: 11.98 kB / 443.2 MB, free: 1.398 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.935e-05/0.003793, allocations: 16 kB / 443.2 MB, free: 1.383 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.394e-05/0.003817, allocations: 15.92 kB / 443.2 MB, free: 1.367 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.756e-05/0.003855, allocations: 27.97 kB / 443.2 MB, free: 1.34 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.004009, allocations: 95.67 kB / 443.3 MB, free: 1.246 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.004011, allocations: 0 / 443.3 MB, free: 1.246 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004013, allocations: 0 / 443.3 MB, free: 1.246 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.004017, allocations: 0 / 443.3 MB, free: 1.246 MB / 410.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.0005258/0.004543, allocations: 330 kB / 443.6 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.004584, allocations: 19.97 kB / 443.7 MB, free: 0.875 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.004701, allocations: 16.88 kB / 443.7 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.004888, allocations: 129.7 kB / 443.8 MB, free: 0.707 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.004904, allocations: 4.375 kB / 443.8 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.004918, allocations: 8.375 kB / 443.8 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.005072, allocations: 92.77 kB / 443.9 MB, free: 0.6016 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.005082, allocations: 4.125 kB / 443.9 MB, free: 0.5977 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.005095, allocations: 4.359 kB / 443.9 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.005102, allocations: 7.938 kB / 443.9 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.005206, allocations: 47.97 kB / 444 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003671/0.005573, allocations: 264.4 kB / 444.2 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.005712, allocations: 82.47 kB / 444.3 MB, free: 164 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.005808, allocations: 44.78 kB / 444.4 MB, free: 116 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.00583, allocations: 3.984 kB / 444.4 MB, free: 112 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001198/0.005949, allocations: 99.3 kB / 444.5 MB, free: 0 / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 7.544e-06/0.005957, allocations: 4.578 kB / 444.5 MB, free: 46.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005271/0.006484, allocations: 184.6 kB / 444.6 MB, free: 46.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.006545, allocations: 63.25 kB / 444.7 MB, free: 46.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.525e-05/0.00664, allocations: 123.7 kB / 444.8 MB, free: 46.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.006661, allocations: 35.47 kB / 444.9 MB, free: 46.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.006711, allocations: 89.86 kB / 444.9 MB, free: 46.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/0.006762, allocations: 36.36 kB / 445 MB, free: 46.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/0.006823, allocations: 39.52 kB / 445 MB, free: 46.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.762e-05/0.006881, allocations: 320.2 kB / 445.3 MB, free: 45.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.953e-05/0.00696, allocations: 39.41 kB / 445.4 MB, free: 45.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.853e-05/0.007049, allocations: 85.33 kB / 445.5 MB, free: 45.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.007198, allocations: 119.6 kB / 445.6 MB, free: 45.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.007201, allocations: 0 / 445.6 MB, free: 45.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001812/0.007382, allocations: 166.8 kB / 445.7 MB, free: 45.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.007398, allocations: 3.031 kB / 445.7 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.007406, allocations: 6.031 kB / 445.7 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.007423, allocations: 3.156 kB / 445.7 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.789e-05/0.007521, allocations: 17.8 kB / 445.8 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.007528, allocations: 6.406 kB / 445.8 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.708e-05/0.007565, allocations: 7.719 kB / 445.8 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.007578, allocations: 6.156 kB / 445.8 MB, free: 45.88 MB / 410.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.735e-05/0.007655, allocations: 142.3 kB / 445.9 MB, free: 45.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.007666, allocations: 6.859 kB / 445.9 MB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.111e-05/0.007697, allocations: 14.53 kB / 445.9 MB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.007702, allocations: 6.484 kB / 445.9 MB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.007708, allocations: 3.594 kB / 446 MB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.007713, allocations: 2.188 kB / 446 MB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003722/0.008085, allocations: 394 kB / 446.3 MB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.008087, allocations: 0 / 446.3 MB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.734e-05/0.008114, allocations: 8.906 kB / 446.3 MB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.008117, allocations: 3.062 kB / 446.4 MB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.008127, allocations: 3.812 kB / 446.4 MB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.008129, allocations: 0 / 446.4 MB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.008131, allocations: 11.34 kB / 446.4 MB, free: 45.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.008303, allocations: 259.1 kB / 446.6 MB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.153e-05/0.008314, allocations: 12.8 kB / 446.6 MB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.008333, allocations: 0 / 446.6 MB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.833e-05/0.008391, allocations: 13.05 kB / 446.6 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.111e-05/0.008432, allocations: 11.69 kB / 446.7 MB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.008451, allocations: 13.61 kB / 446.7 MB, free: 45.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.323e-05/0.008474, allocations: 92.16 kB / 446.8 MB, free: 45.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.008474, allocations: 3.281 kB / 446.8 MB, free: 45.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001672/0.008641, allocations: 24.59 kB / 446.8 MB, free: 45.25 MB / 410.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.692e-05/0.008728, allocations: 106.8 kB / 446.9 MB, free: 45.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001747/0.008903, allocations: 99.06 kB / 447 MB, free: 45.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.008905, allocations: 0 / 447 MB, free: 45.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.069e-05/0.008975, allocations: 52.34 kB / 447 MB, free: 45.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.009192, allocations: 18.3 kB / 447.1 MB, free: 45.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003543/0.009547, allocations: 221.1 kB / 447.3 MB, free: 44.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.279e-05/0.009599, allocations: 84.22 kB / 447.4 MB, free: 44.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.009636, allocations: 17.78 kB / 447.4 MB, free: 44.86 MB / 410.7 MB Notification: Performance of SimCode: time 5.11e-07/0.009637, allocations: 0 / 447.4 MB, free: 44.86 MB / 410.7 MB Notification: Performance of Templates: time 0.002101/0.01174, allocations: 1.309 MB / 448.7 MB, free: 44.79 MB / 410.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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/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: 4.4556066347286105]