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.001504/0.001504, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.001842/0.001842, allocations: 161 kB / 24.56 MB, free: 16 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 0.9557/0.9557, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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.2547/0.2547, allocations: 34.26 MB / 295.7 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] 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.553e-06/1.553e-06, allocations: 0 / 378 MB, free: 2.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.331e-05/2.487e-05, allocations: 2.312 kB / 378 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00223/0.002255, allocations: 1.579 MB / 379.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007403/0.002996, allocations: 0.5414 MB / 380.1 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.288e-05/0.003059, allocations: 7.938 kB / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.317e-05/0.003092, allocations: 7.922 kB / 380.2 MB, free: 488 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.268e-05/0.003184, allocations: 11.86 kB / 380.2 MB, free: 476 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.003444, allocations: 51.81 kB / 380.2 MB, free: 424 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.003576, allocations: 95.64 kB / 380.3 MB, free: 328 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.299e-05/0.003669, allocations: 11.97 kB / 380.3 MB, free: 316 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.003811, allocations: 67.81 kB / 380.4 MB, free: 248 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.029e-05/0.003872, allocations: 27.91 kB / 380.4 MB, free: 220 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.00389, allocations: 8 kB / 380.4 MB, free: 212 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.967e-05/0.00393, allocations: 12 kB / 380.4 MB, free: 200 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.00395, allocations: 19.97 kB / 380.5 MB, free: 180 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.889e-05/0.003989, allocations: 31.91 kB / 380.5 MB, free: 148 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.004116, allocations: 67.72 kB / 380.6 MB, free: 80 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.004119, allocations: 4 kB / 380.6 MB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.00412, allocations: 0 / 380.6 MB, free: 76 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.004124, allocations: 0 / 380.6 MB, free: 76 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.0005112/0.004635, allocations: 440.2 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.00467, allocations: 8.031 kB / 381 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.004777, allocations: 24.88 kB / 381 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.004922, allocations: 132.5 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.004949, allocations: 12.31 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.004961, allocations: 4.375 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.005117, allocations: 98.08 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.005126, allocations: 192 / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.005138, allocations: 4.375 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.005147, allocations: 7.938 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.337e-05/0.00519, allocations: 15.98 kB / 381.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000354/0.005544, allocations: 311.7 kB / 381.6 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.005665, allocations: 74.95 kB / 381.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.815e-05/0.005703, allocations: 23.67 kB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.005723, allocations: 4 kB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.817e-05/0.005821, allocations: 88.95 kB / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.005822, allocations: 0 / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002569/0.006079, allocations: 145.6 kB / 381.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.006119, allocations: 67.34 kB / 382 MB, free: 14.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.388e-05/0.006203, allocations: 177.9 kB / 382.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.006218, allocations: 29.7 kB / 382.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.742e-05/0.006266, allocations: 139.2 kB / 382.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.0063, allocations: 43.67 kB / 382.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.006342, allocations: 43.36 kB / 382.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.006456, allocations: 0.4923 MB / 382.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.528e-05/0.006491, allocations: 19.98 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.081e-05/0.006552, allocations: 74.48 kB / 383 MB, free: 13.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.006654, allocations: 109.8 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.006657, allocations: 0 / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001407/0.006798, allocations: 133.4 kB / 383.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.006811, allocations: 7.984 kB / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.006817, allocations: 0 / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.00683, allocations: 4 kB / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.427e-05/0.006914, allocations: 27.92 kB / 383.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.006921, allocations: 8.125 kB / 383.3 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.222e-05/0.006953, allocations: 15.89 kB / 383.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.657e-06/0.006962, allocations: 4 kB / 383.3 MB, free: 13.08 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 8.64e-05/0.007048, allocations: 178.5 kB / 383.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.007065, allocations: 15.94 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.717e-05/0.007092, allocations: 8.438 kB / 383.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.007094, allocations: 0 / 383.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.007099, allocations: 8 kB / 383.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.007102, allocations: 0 / 383.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/0.007406, allocations: 413.2 kB / 383.9 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.007407, allocations: 4 kB / 383.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.427e-05/0.007431, allocations: 8 kB / 383.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.007433, allocations: 0 / 383.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.007444, allocations: 7.984 kB / 383.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.007445, allocations: 0 / 383.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.007446, allocations: 0 / 383.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001706/0.007617, allocations: 287.7 kB / 384.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-06/0.007626, allocations: 7.953 kB / 384.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.007642, allocations: 3.984 kB / 384.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.165e-05/0.007694, allocations: 12 kB / 384.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.007727, allocations: 19.86 kB / 384.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.007741, allocations: 7.984 kB / 384.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.345e-05/0.007784, allocations: 143.5 kB / 384.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007784, allocations: 0 / 384.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001638/0.007948, allocations: 23.94 kB / 384.4 MB, free: 11.88 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 7.206e-05/0.00802, allocations: 103.2 kB / 384.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001394/0.00816, allocations: 94.08 kB / 384.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.008161, allocations: 0 / 384.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.252e-05/0.008213, allocations: 43.86 kB / 384.7 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.008401, allocations: 26.62 kB / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004722/0.008873, allocations: 206.5 kB / 384.9 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.135e-05/0.008914, allocations: 63.34 kB / 385 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.019e-05/0.008945, allocations: 12.97 kB / 385 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.008975, allocations: 12.5 kB / 385 MB, free: 11.28 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.008975, allocations: 0 / 385 MB, free: 11.28 MB / 362.7 MB Notification: Performance of Templates: time 0.002536/0.01151, allocations: 1.123 MB / 386.1 MB, free: 10.17 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","",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.0498557882383466]