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.0008282/0.0008282, allocations: 84.44 kB / 20.69 MB, free: 3.875 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.0007748/0.0007748, allocations: 169.9 kB / 23.96 MB, free: 0.6016 MB / 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 0.8885/0.8885, allocations: 158.6 MB / 185.7 MB, free: 3.043 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.13/0.13, allocations: 32.37 MB / 270.4 MB, free: 14.98 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 1.603e-06/1.603e-06, allocations: 0 / 408.1 MB, free: 1.746 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.911e-05/3.071e-05, allocations: 2.281 kB / 408.1 MB, free: 1.742 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002297/0.002328, allocations: 1.518 MB / 409.6 MB, free: 224 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006851/0.003013, allocations: 0.4996 MB / 410.1 MB, free: 15.71 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.285e-05/0.003056, allocations: 0 / 410.1 MB, free: 15.71 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 3.2e-05/0.003088, allocations: 3.938 kB / 410.1 MB, free: 15.71 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 9.456e-05/0.003183, allocations: 15.8 kB / 410.1 MB, free: 15.69 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.00339, allocations: 39.88 kB / 410.2 MB, free: 15.65 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 9.971e-05/0.00349, allocations: 95.69 kB / 410.3 MB, free: 15.56 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.003594, allocations: 11.94 kB / 410.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.003719, allocations: 59.81 kB / 410.3 MB, free: 15.49 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.741e-05/0.003786, allocations: 27.91 kB / 410.4 MB, free: 15.46 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.003812, allocations: 4 kB / 410.4 MB, free: 15.46 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.16e-05/0.003824, allocations: 8 kB / 410.4 MB, free: 15.45 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 2.629e-05/0.00385, allocations: 19.97 kB / 410.4 MB, free: 15.43 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.00389, allocations: 27.91 kB / 410.4 MB, free: 15.4 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.004008, allocations: 83.75 kB / 410.5 MB, free: 15.32 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.004011, allocations: 0 / 410.5 MB, free: 15.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.004012, allocations: 4 kB / 410.5 MB, free: 15.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.004017, allocations: 0 / 410.5 MB, free: 15.32 MB / 394.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.0004878/0.004504, allocations: 318 kB / 410.8 MB, free: 14.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.004543, allocations: 12.03 kB / 410.8 MB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.004581, allocations: 12.88 kB / 410.8 MB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.181e-05/0.004672, allocations: 121.6 kB / 411 MB, free: 14.81 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.004687, allocations: 4.375 kB / 411 MB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.004702, allocations: 16.38 kB / 411 MB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.004851, allocations: 86.2 kB / 411.1 MB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.004859, allocations: 192 / 411.1 MB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.004871, allocations: 384 / 411.1 MB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.004878, allocations: 11.88 kB / 411.1 MB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.785e-05/0.004956, allocations: 43.97 kB / 411.1 MB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003964/0.005353, allocations: 256.4 kB / 411.4 MB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.005491, allocations: 82.55 kB / 411.4 MB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.448e-05/0.005545, allocations: 44.84 kB / 411.5 MB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.005564, allocations: 0 / 411.5 MB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001464/0.00571, allocations: 103.3 kB / 411.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 9.82e-07/0.005711, allocations: 0 / 411.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003166/0.006028, allocations: 197.6 kB / 411.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.006064, allocations: 55.41 kB / 411.8 MB, free: 13.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.056e-05/0.006135, allocations: 117.8 kB / 412 MB, free: 13.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.006153, allocations: 33.7 kB / 412 MB, free: 13.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.794e-05/0.006191, allocations: 88.42 kB / 412.1 MB, free: 13.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.006226, allocations: 47.67 kB / 412.1 MB, free: 13.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.006267, allocations: 37.7 kB / 412.2 MB, free: 13.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.006353, allocations: 322.8 kB / 412.5 MB, free: 13.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.501e-05/0.006408, allocations: 31.98 kB / 412.5 MB, free: 13.15 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.162e-05/0.00648, allocations: 81 kB / 412.6 MB, free: 13.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.006608, allocations: 129.2 kB / 412.7 MB, free: 12.91 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.00661, allocations: 0 / 412.7 MB, free: 12.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001666/0.006777, allocations: 157.4 kB / 412.9 MB, free: 12.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.006792, allocations: 4 kB / 412.9 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.006798, allocations: 4 kB / 412.9 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.006813, allocations: 3.984 kB / 412.9 MB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.669e-05/0.006889, allocations: 20.31 kB / 412.9 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.006897, allocations: 4.156 kB / 412.9 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.485e-05/0.006931, allocations: 23.88 kB / 412.9 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.00694, allocations: 4 kB / 412.9 MB, free: 12.68 MB / 394.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.815e-05/0.007028, allocations: 135.7 kB / 413.1 MB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.062e-05/0.007039, allocations: 7.953 kB / 413.1 MB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.708e-05/0.007066, allocations: 16.42 kB / 413.1 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.007068, allocations: 3.938 kB / 413.1 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.007076, allocations: 0 / 413.1 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.00708, allocations: 0 / 413.1 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.00742, allocations: 374.1 kB / 413.4 MB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.007421, allocations: 4 kB / 413.5 MB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.864e-05/0.00745, allocations: 19.86 kB / 413.5 MB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.007451, allocations: 0 / 413.5 MB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.007461, allocations: 4 kB / 413.5 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.007463, allocations: 0 / 413.5 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.007465, allocations: 3.938 kB / 413.5 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.007657, allocations: 255.5 kB / 413.7 MB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.249e-05/0.00767, allocations: 11.89 kB / 413.7 MB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.007686, allocations: 4 kB / 413.7 MB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.362e-05/0.00774, allocations: 15.98 kB / 413.8 MB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.007779, allocations: 11.92 kB / 413.8 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.007797, allocations: 7.984 kB / 413.8 MB, free: 11.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.754e-05/0.007835, allocations: 87.28 kB / 413.9 MB, free: 11.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007835, allocations: 0 / 413.9 MB, free: 11.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001665/0.008001, allocations: 23.98 kB / 413.9 MB, free: 11.65 MB / 394.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 9.389e-05/0.008095, allocations: 103.2 kB / 414 MB, free: 11.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.008262, allocations: 96.25 kB / 414.1 MB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.008264, allocations: 4.062 kB / 414.1 MB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.688e-05/0.00833, allocations: 55.91 kB / 414.1 MB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.008541, allocations: 16.14 kB / 414.2 MB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.008891, allocations: 220.3 kB / 414.4 MB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.411e-05/0.008945, allocations: 75.33 kB / 414.4 MB, free: 11.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.008981, allocations: 20.77 kB / 414.5 MB, free: 11.01 MB / 394.7 MB Notification: Performance of SimCode: time 6.52e-07/0.008982, allocations: 0 / 414.5 MB, free: 11.01 MB / 394.7 MB Notification: Performance of Templates: time 0.002154/0.01114, allocations: 1.261 MB / 415.7 MB, free: 9.746 MB / 394.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.217875745147467]