Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 88.86 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001042, allocations: 161.9 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9222/0.9222, allocations: 177 MB / 205.2 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2618/0.2618, allocations: 34.87 MB / 296.6 MB, free: 0.5117 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 325.9 MB, free: 7.195 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.229e-05/1.353e-05, allocations: 2.875 kB / 325.9 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001807/0.001821, allocations: 1.572 MB / 327.5 MB, free: 5.609 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007037/0.002525, allocations: 0.5575 MB / 328 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.88e-05/0.002584, allocations: 0 / 328 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.094e-05/0.002614, allocations: 7.875 kB / 328 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.116e-05/0.002706, allocations: 15.84 kB / 328 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.002934, allocations: 55.75 kB / 328.1 MB, free: 4.969 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.003063, allocations: 91.69 kB / 328.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.522e-05/0.003148, allocations: 15.98 kB / 328.2 MB, free: 4.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.003291, allocations: 63.81 kB / 328.3 MB, free: 4.801 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.257e-05/0.003364, allocations: 39.88 kB / 328.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.003383, allocations: 8 kB / 328.3 MB, free: 4.754 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.184e-05/0.003424, allocations: 8 kB / 328.3 MB, free: 4.746 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.661e-05/0.003451, allocations: 19.97 kB / 328.3 MB, free: 4.727 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.862e-05/0.00349, allocations: 28.55 kB / 328.4 MB, free: 4.699 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.003601, allocations: 63.78 kB / 328.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.003602, allocations: 0 / 328.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.003603, allocations: 0 / 328.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.003606, allocations: 4 kB / 328.4 MB, free: 4.633 MB / 298.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.0003868/0.003993, allocations: 310 kB / 328.7 MB, free: 4.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.004023, allocations: 8.031 kB / 328.7 MB, free: 4.301 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.049e-05/0.004113, allocations: 28.84 kB / 328.8 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.00423, allocations: 134.1 kB / 328.9 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.004247, allocations: 12.38 kB / 328.9 MB, free: 4.105 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.004259, allocations: 12.38 kB / 328.9 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.004362, allocations: 84.91 kB / 329 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.004368, allocations: 192 / 329 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.004379, allocations: 8.359 kB / 329 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.004385, allocations: 3.938 kB / 329 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.912e-05/0.004414, allocations: 15.94 kB / 329 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000245/0.004659, allocations: 180.3 kB / 329.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.431e-05/0.004743, allocations: 58.53 kB / 329.3 MB, free: 3.719 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.252e-05/0.004766, allocations: 16.86 kB / 329.3 MB, free: 3.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.00478, allocations: 4 kB / 329.3 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.655e-05/0.004856, allocations: 83.88 kB / 329.4 MB, free: 3.602 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.004858, allocations: 0 / 329.4 MB, free: 3.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001394/0.004997, allocations: 99.45 kB / 329.5 MB, free: 3.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.005033, allocations: 59.41 kB / 329.5 MB, free: 3.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.277e-05/0.005096, allocations: 123.9 kB / 329.7 MB, free: 3.297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.00511, allocations: 29.7 kB / 329.7 MB, free: 3.262 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.098e-05/0.005141, allocations: 96.33 kB / 329.8 MB, free: 3.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.00517, allocations: 35.72 kB / 329.8 MB, free: 3.125 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.005208, allocations: 37.7 kB / 329.8 MB, free: 3.082 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.368e-05/0.005281, allocations: 322.8 kB / 330.2 MB, free: 2.758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.81e-05/0.005299, allocations: 16.2 kB / 330.2 MB, free: 2.742 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.713e-05/0.005337, allocations: 53.77 kB / 330.2 MB, free: 2.676 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.443e-05/0.005411, allocations: 89.67 kB / 330.3 MB, free: 2.574 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.005414, allocations: 4 kB / 330.3 MB, free: 2.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 9.317e-05/0.005507, allocations: 101.6 kB / 330.4 MB, free: 2.465 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/0.005517, allocations: 4 kB / 330.4 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.005523, allocations: 4 kB / 330.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/0.005532, allocations: 0 / 330.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.958e-05/0.005601, allocations: 27.92 kB / 330.5 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.005605, allocations: 4 kB / 330.5 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.916e-05/0.005634, allocations: 11.95 kB / 330.5 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.005642, allocations: 4 kB / 330.5 MB, free: 2.41 MB / 298.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 6.277e-05/0.005705, allocations: 131.7 kB / 330.6 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.353e-05/0.005719, allocations: 15.98 kB / 330.6 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.159e-05/0.00574, allocations: 16.47 kB / 330.6 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.005741, allocations: 0 / 330.6 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.005743, allocations: 0 / 330.6 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.005745, allocations: 0 / 330.6 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.005939, allocations: 259.7 kB / 330.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.005939, allocations: 0 / 330.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.312e-05/0.005962, allocations: 11.98 kB / 330.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.005964, allocations: 3.938 kB / 330.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-06/0.005969, allocations: 0 / 330.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.00597, allocations: 0 / 330.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.005972, allocations: 4 kB / 330.9 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.533e-05/0.006067, allocations: 182.7 kB / 331.1 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.916e-06/0.006076, allocations: 11.94 kB / 331.1 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.00609, allocations: 4 kB / 331.1 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.149e-05/0.006141, allocations: 11.98 kB / 331.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.006167, allocations: 7.984 kB / 331.1 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.006178, allocations: 4 kB / 331.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.557e-05/0.006193, allocations: 22.14 kB / 331.1 MB, free: 1.691 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006193, allocations: 3.938 kB / 331.2 MB, free: 1.688 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001347/0.006328, allocations: 23.94 kB / 331.2 MB, free: 1.664 MB / 298.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.949e-05/0.006397, allocations: 88.36 kB / 331.3 MB, free: 1.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.006516, allocations: 72.7 kB / 331.3 MB, free: 1.496 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.006519, allocations: 0 / 331.3 MB, free: 1.496 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.622e-05/0.006575, allocations: 40.77 kB / 331.4 MB, free: 1.453 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.006723, allocations: 11.98 kB / 331.4 MB, free: 1.441 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/0.007094, allocations: 197.8 kB / 331.6 MB, free: 1.223 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.205e-05/0.007126, allocations: 63.61 kB / 331.6 MB, free: 1.141 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.72e-05/0.007154, allocations: 12.97 kB / 331.7 MB, free: 1.129 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.937e-05/0.007203, allocations: 63.36 kB / 331.7 MB, free: 1.062 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.007204, allocations: 0 / 331.7 MB, free: 1.062 MB / 298.7 MB Notification: Performance of Templates: time 0.00235/0.009554, allocations: 1.142 MB / 332.9 MB, free: 15.95 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 2.7684146161191165]