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.001199/0.001199, allocations: 88.2 kB / 20.94 MB, free: 3.602 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.001573/0.001573, allocations: 169 kB / 24.25 MB, free: 308 kB / 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.104/1.104, allocations: 158.6 MB / 186 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] 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.1358/0.1358, allocations: 32.37 MB / 270.7 MB, free: 14.77 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 2.715e-06/2.715e-06, allocations: 0 / 347.7 MB, free: 9.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.345e-05/4.617e-05, allocations: 6.312 kB / 347.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002167/0.002213, allocations: 1.563 MB / 349.2 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007096/0.002923, allocations: 0.5152 MB / 349.7 MB, free: 7.695 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.396e-05/0.002977, allocations: 0 / 349.7 MB, free: 7.695 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.761e-05/0.003014, allocations: 3.938 kB / 349.7 MB, free: 7.691 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.441e-05/0.003109, allocations: 19.84 kB / 349.8 MB, free: 7.672 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.003338, allocations: 39.77 kB / 349.8 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.835e-05/0.003436, allocations: 87.77 kB / 349.9 MB, free: 7.547 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.003544, allocations: 11.92 kB / 349.9 MB, free: 7.535 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.003695, allocations: 59.83 kB / 350 MB, free: 7.477 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.555e-05/0.003771, allocations: 31.94 kB / 350 MB, free: 7.445 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.003801, allocations: 8 kB / 350 MB, free: 7.438 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.271e-05/0.003814, allocations: 4 kB / 350 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.983e-05/0.003843, allocations: 23.91 kB / 350 MB, free: 7.41 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.683e-05/0.00389, allocations: 27.92 kB / 350 MB, free: 7.383 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.004028, allocations: 59.78 kB / 350.1 MB, free: 7.324 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.004033, allocations: 4 kB / 350.1 MB, free: 7.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.004035, allocations: 0 / 350.1 MB, free: 7.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.004041, allocations: 0 / 350.1 MB, free: 7.32 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.0005247/0.004566, allocations: 428.3 kB / 350.5 MB, free: 6.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.004608, allocations: 8.031 kB / 350.5 MB, free: 6.859 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.451e-05/0.004663, allocations: 16.88 kB / 350.6 MB, free: 6.844 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.98e-05/0.004742, allocations: 120.5 kB / 350.7 MB, free: 6.699 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.004764, allocations: 8.375 kB / 350.7 MB, free: 6.691 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.004779, allocations: 8.375 kB / 350.7 MB, free: 6.684 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.004933, allocations: 85.66 kB / 350.8 MB, free: 6.594 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.004943, allocations: 192 / 350.8 MB, free: 6.594 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.004955, allocations: 4.375 kB / 350.8 MB, free: 6.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.004966, allocations: 7.938 kB / 350.8 MB, free: 6.582 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.37e-05/0.005009, allocations: 23.92 kB / 350.8 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004057/0.005415, allocations: 303.7 kB / 351.1 MB, free: 6.227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.005539, allocations: 74.95 kB / 351.2 MB, free: 6.141 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.629e-05/0.005576, allocations: 23.69 kB / 351.2 MB, free: 6.113 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.005599, allocations: 7.984 kB / 351.2 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001079/0.005707, allocations: 88.91 kB / 351.3 MB, free: 6.004 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.005709, allocations: 0 / 351.3 MB, free: 6.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002768/0.005986, allocations: 145.6 kB / 351.4 MB, free: 5.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.006031, allocations: 59.41 kB / 351.5 MB, free: 5.785 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.991e-05/0.006101, allocations: 181.8 kB / 351.7 MB, free: 5.59 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.006114, allocations: 33.7 kB / 351.7 MB, free: 5.551 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.006147, allocations: 139.2 kB / 351.8 MB, free: 5.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.006178, allocations: 31.73 kB / 351.9 MB, free: 5.379 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.006218, allocations: 43.36 kB / 351.9 MB, free: 5.328 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.443e-05/0.006273, allocations: 0.4923 MB / 352.4 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.312e-05/0.006306, allocations: 19.98 kB / 352.4 MB, free: 4.805 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.996e-05/0.006356, allocations: 82.05 kB / 352.5 MB, free: 4.699 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.104e-05/0.006447, allocations: 114 kB / 352.6 MB, free: 4.562 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.00645, allocations: 0 / 352.6 MB, free: 4.562 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001404/0.006591, allocations: 137.6 kB / 352.7 MB, free: 4.422 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.006606, allocations: 8 kB / 352.8 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.006611, allocations: 4.094 kB / 352.8 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.006627, allocations: 8 kB / 352.8 MB, free: 4.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.006731, allocations: 23.98 kB / 352.8 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.00674, allocations: 0 / 352.8 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.314e-05/0.006773, allocations: 15.92 kB / 352.8 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.006784, allocations: 8 kB / 352.8 MB, free: 4.355 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 8.184e-05/0.006865, allocations: 174.4 kB / 353 MB, free: 4.172 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.006882, allocations: 15.95 kB / 353 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.182e-05/0.006914, allocations: 16.42 kB / 353 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.006917, allocations: 0 / 353 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.006922, allocations: 0 / 353 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.006925, allocations: 4 kB / 353 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003405/0.007265, allocations: 423.1 kB / 353.4 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.007268, allocations: 0 / 353.4 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.856e-05/0.007317, allocations: 7.984 kB / 353.4 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.00732, allocations: 0 / 353.4 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.007333, allocations: 4 kB / 353.4 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.007334, allocations: 0 / 353.4 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.007337, allocations: 0 / 353.4 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.007509, allocations: 295.7 kB / 353.7 MB, free: 3.367 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.386e-05/0.007523, allocations: 11.89 kB / 353.7 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.007547, allocations: 8 kB / 353.8 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.373e-05/0.00761, allocations: 15.92 kB / 353.8 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.007664, allocations: 11.92 kB / 353.8 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.007685, allocations: 4 kB / 353.8 MB, free: 3.316 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.506e-05/0.00772, allocations: 135.2 kB / 353.9 MB, free: 3.184 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00772, allocations: 0 / 353.9 MB, free: 3.184 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001882/0.007909, allocations: 20 kB / 353.9 MB, free: 3.164 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 0.0001063/0.008015, allocations: 99.84 kB / 354 MB, free: 3.055 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000163/0.008178, allocations: 84.14 kB / 354.1 MB, free: 2.969 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.00818, allocations: 0 / 354.1 MB, free: 2.969 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.074e-05/0.008231, allocations: 50.34 kB / 354.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.008453, allocations: 12 kB / 354.2 MB, free: 2.906 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000548/0.009001, allocations: 205.6 kB / 354.4 MB, free: 2.676 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.184e-05/0.009033, allocations: 63.34 kB / 354.4 MB, free: 2.594 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.253e-05/0.009065, allocations: 12.97 kB / 354.5 MB, free: 2.582 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.009101, allocations: 20.62 kB / 354.5 MB, free: 2.562 MB / 282.7 MB Notification: Performance of SimCode: time 1.473e-06/0.009103, allocations: 0 / 354.5 MB, free: 2.562 MB / 282.7 MB Notification: Performance of Templates: time 0.002956/0.01206, allocations: 1.054 MB / 355.5 MB, free: 1.527 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.273108011111617]