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.00105/0.00105, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001183/0.001183, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 1.02/1.02, allocations: 177 MB / 204.8 MB, free: 5.574 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.2723/0.2723, allocations: 34.86 MB / 296.3 MB, free: 0.5469 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.873e-06/1.873e-06, allocations: 0 / 378.7 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.25e-05/3.437e-05, allocations: 3.016 kB / 378.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002187/0.002222, allocations: 1.586 MB / 380.3 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008892/0.003111, allocations: 0.5414 MB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.967e-05/0.00319, allocations: 3.938 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 4.304e-05/0.003234, allocations: 3.938 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.003346, allocations: 15.88 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.003653, allocations: 51.8 kB / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.003818, allocations: 95.64 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.003948, allocations: 15.97 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.004161, allocations: 59.83 kB / 381.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.508e-05/0.004246, allocations: 31.89 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.262e-05/0.004269, allocations: 8 kB / 381.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.424e-05/0.004323, allocations: 15.98 kB / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.429e-05/0.004347, allocations: 19.97 kB / 381.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.712e-05/0.004394, allocations: 31.91 kB / 381.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.004568, allocations: 67.73 kB / 381.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.00457, allocations: 0 / 381.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.004572, allocations: 0 / 381.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.004576, allocations: 0 / 381.3 MB, free: 15.55 MB / 362.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.000569/0.005145, allocations: 440.2 kB / 381.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.00519, allocations: 8.031 kB / 381.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.005316, allocations: 24.88 kB / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.005471, allocations: 128.5 kB / 381.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.005493, allocations: 16.3 kB / 381.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.00551, allocations: 8.375 kB / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001599/0.00567, allocations: 94.09 kB / 382 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.00568, allocations: 192 / 382 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.005692, allocations: 384 / 382 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.005701, allocations: 3.938 kB / 382 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.739e-05/0.005748, allocations: 19.98 kB / 382 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000455/0.006203, allocations: 319.7 kB / 382.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.006341, allocations: 74.97 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.884e-05/0.00638, allocations: 23.67 kB / 382.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.006404, allocations: 4 kB / 382.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001058/0.00651, allocations: 84.97 kB / 382.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.006512, allocations: 0 / 382.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002861/0.006798, allocations: 153.5 kB / 382.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.006842, allocations: 63.39 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.225e-05/0.006934, allocations: 169.9 kB / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.006952, allocations: 37.7 kB / 382.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.309e-05/0.007005, allocations: 139.1 kB / 383.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.007041, allocations: 39.69 kB / 383.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.557e-05/0.007087, allocations: 43.36 kB / 383.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.007211, allocations: 0.4962 MB / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.957e-05/0.00725, allocations: 15.98 kB / 383.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.458e-05/0.007315, allocations: 78.47 kB / 383.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.007425, allocations: 109.5 kB / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.007428, allocations: 0 / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001729/0.007601, allocations: 133.4 kB / 384 MB, free: 12.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.007615, allocations: 8 kB / 384 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.007621, allocations: 0 / 384 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.007643, allocations: 3.984 kB / 384 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.007743, allocations: 27.92 kB / 384 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.007751, allocations: 4 kB / 384 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.495e-05/0.007786, allocations: 12.08 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.007797, allocations: 8 kB / 384 MB, free: 12.56 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 9.235e-05/0.007889, allocations: 182.4 kB / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.999e-05/0.007909, allocations: 15.95 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.176e-05/0.007941, allocations: 8.438 kB / 384.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.007944, allocations: 4 kB / 384.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.007949, allocations: 0 / 384.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.007954, allocations: 3.984 kB / 384.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003548/0.008309, allocations: 409.2 kB / 384.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.008312, allocations: 0 / 384.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-05/0.008353, allocations: 11.98 kB / 384.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.008356, allocations: 4 kB / 384.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.008368, allocations: 8 kB / 384.7 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.00837, allocations: 0 / 384.7 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.008372, allocations: 0 / 384.7 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002101/0.008582, allocations: 287.7 kB / 384.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.008595, allocations: 15.88 kB / 385 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.008616, allocations: 4 kB / 385 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.871e-05/0.008675, allocations: 15.98 kB / 385 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.393e-05/0.008719, allocations: 11.92 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.008736, allocations: 4 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.599e-05/0.008782, allocations: 143.5 kB / 385.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008782, allocations: 0 / 385.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001727/0.008955, allocations: 24 kB / 385.2 MB, free: 11.36 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 9.326e-05/0.009048, allocations: 103.2 kB / 385.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001598/0.009208, allocations: 86.66 kB / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.009209, allocations: 0 / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.767e-05/0.009267, allocations: 47.59 kB / 385.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.009491, allocations: 12.25 kB / 385.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005536/0.01004, allocations: 210.5 kB / 385.6 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.226e-05/0.01009, allocations: 67.28 kB / 385.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.564e-05/0.01012, allocations: 16.95 kB / 385.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.827e-05/0.01016, allocations: 12.5 kB / 385.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01016, allocations: 0 / 385.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of Templates: time 0.002966/0.01313, allocations: 1.083 MB / 386.8 MB, free: 9.68 MB / 362.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: 3.328577700071037]