Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001919/0.001919, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.002074/0.002074, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 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 1.612/1.612, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.4144/0.4144, allocations: 34.26 MB / 295.3 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/3.098e-05, allocations: 2.312 kB / 377.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003148/0.003179, allocations: 1.56 MB / 378.8 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.004376, allocations: 0.5336 MB / 379.4 MB, free: 0.875 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.198e-05/0.004438, allocations: 4 kB / 379.4 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.012e-05/0.004468, allocations: 7.875 kB / 379.4 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.004574, allocations: 15.86 kB / 379.4 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.004877, allocations: 47.81 kB / 379.4 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.005076, allocations: 95.69 kB / 379.5 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.005198, allocations: 7.984 kB / 379.5 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/0.005425, allocations: 71.75 kB / 379.6 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.642e-05/0.005522, allocations: 31.89 kB / 379.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.005549, allocations: 8 kB / 379.6 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.428e-05/0.005603, allocations: 16 kB / 379.7 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.929e-05/0.005643, allocations: 19.91 kB / 379.7 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.186e-05/0.005704, allocations: 31.91 kB / 379.7 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.005916, allocations: 87.69 kB / 379.8 MB, free: 448 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.005923, allocations: 4 kB / 379.8 MB, free: 444 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.005924, allocations: 0 / 379.8 MB, free: 444 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.005929, allocations: 0 / 379.8 MB, free: 444 kB / 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.0008565/0.006785, allocations: 439.9 kB / 380.2 MB, free: 15.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.006824, allocations: 8.031 kB / 380.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.007, allocations: 24.88 kB / 380.3 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.007242, allocations: 132.5 kB / 380.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.007262, allocations: 4.375 kB / 380.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.00728, allocations: 4.375 kB / 380.4 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.007513, allocations: 86.2 kB / 380.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.007525, allocations: 4.125 kB / 380.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.007636, allocations: 8.359 kB / 380.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.007642, allocations: 7.938 kB / 380.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.00778, allocations: 35.98 kB / 380.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006326/0.008413, allocations: 319.6 kB / 380.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.008659, allocations: 91.03 kB / 380.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.008763, allocations: 43.88 kB / 381 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.008793, allocations: 11.88 kB / 381 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002339/0.009027, allocations: 109.1 kB / 381.1 MB, free: 15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.009028, allocations: 4 kB / 381.1 MB, free: 15 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005343/0.009563, allocations: 189.6 kB / 381.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.009624, allocations: 59.34 kB / 381.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.009799, allocations: 185.9 kB / 381.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.009834, allocations: 33.7 kB / 381.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.009948, allocations: 139.2 kB / 381.7 MB, free: 14.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.01002, allocations: 47.67 kB / 381.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.18e-05/0.0101, allocations: 43.36 kB / 381.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002791/0.01038, allocations: 0.5001 MB / 382.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.01048, allocations: 35.98 kB / 382.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.01063, allocations: 98.34 kB / 382.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.01089, allocations: 138 kB / 382.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.0109, allocations: 0 / 382.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003285/0.01123, allocations: 165.6 kB / 382.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.01124, allocations: 4 kB / 382.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.01125, allocations: 4 kB / 382.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.01126, allocations: 0 / 382.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.0114, allocations: 31.92 kB / 382.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.01141, allocations: 4 kB / 382.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.972e-05/0.01147, allocations: 7.953 kB / 382.8 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.01149, allocations: 8 kB / 382.8 MB, free: 13.21 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.0001517/0.01164, allocations: 178.4 kB / 382.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.533e-05/0.01167, allocations: 19.94 kB / 383 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.01171, allocations: 16.44 kB / 383 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01171, allocations: 0 / 383 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.01171, allocations: 0 / 383 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.01172, allocations: 0 / 383 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/0.01238, allocations: 461.2 kB / 383.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.01239, allocations: 4 kB / 383.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.125e-05/0.01244, allocations: 7.938 kB / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.01244, allocations: 0 / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.01246, allocations: 7.984 kB / 383.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.01246, allocations: 0 / 383.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.01246, allocations: 4 kB / 383.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/0.01292, allocations: 315.8 kB / 383.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.432e-05/0.01294, allocations: 3.953 kB / 383.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.01296, allocations: 4 kB / 383.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.01307, allocations: 11.98 kB / 383.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.975e-05/0.01313, allocations: 11.92 kB / 383.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.01315, allocations: 4 kB / 383.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.874e-05/0.01325, allocations: 143.6 kB / 383.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01325, allocations: 0 / 383.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002465/0.0135, allocations: 27.94 kB / 384 MB, free: 11.94 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.0001442/0.01364, allocations: 99.23 kB / 384.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.01397, allocations: 122.3 kB / 384.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01397, allocations: 0 / 384.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.01411, allocations: 59.59 kB / 384.2 MB, free: 11.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.01439, allocations: 24.25 kB / 384.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005126/0.0149, allocations: 210.7 kB / 384.5 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.589e-05/0.01499, allocations: 83.33 kB / 384.6 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.562e-05/0.01503, allocations: 12.95 kB / 384.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/0.01508, allocations: 16.5 kB / 384.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01508, allocations: 0 / 384.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of Templates: time 0.004884/0.01997, allocations: 1.097 MB / 385.7 MB, free: 10.19 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.9041685740230605]