Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001505/0.001505, allocations: 83.95 kB / 20.68 MB, free: 0.8906 MB / 14.72 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.001398/0.001398, allocations: 167.5 kB / 23.96 MB, free: 3.91 MB / 14.72 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.377/1.377, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1908/0.1908, allocations: 32.81 MB / 293.5 MB, free: 40 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 440.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.326e-05/2.453e-05, allocations: 2.281 kB / 440.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002563/0.002587, allocations: 1.532 MB / 441.6 MB, free: 6.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009784/0.003565, allocations: 0.5181 MB / 442.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.138e-05/0.003627, allocations: 3.938 kB / 442.1 MB, free: 6.113 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.634e-05/0.003663, allocations: 11.92 kB / 442.1 MB, free: 6.102 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.142e-05/0.003755, allocations: 15.81 kB / 442.2 MB, free: 6.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.004004, allocations: 47.81 kB / 442.2 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.004172, allocations: 103.6 kB / 442.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.52e-05/0.004267, allocations: 7.984 kB / 442.3 MB, free: 5.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.004444, allocations: 59.88 kB / 442.4 MB, free: 5.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.758e-05/0.004521, allocations: 31.89 kB / 442.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.004547, allocations: 8 kB / 442.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.005e-05/0.004597, allocations: 15.94 kB / 442.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.004629, allocations: 23.91 kB / 442.4 MB, free: 5.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.409e-05/0.004693, allocations: 23.98 kB / 442.5 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.004869, allocations: 95.67 kB / 442.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.004871, allocations: 0 / 442.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004872, allocations: 0 / 442.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.004876, allocations: 0 / 442.6 MB, free: 5.676 MB / 366.1 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.0006976/0.005574, allocations: 330 kB / 442.9 MB, free: 5.324 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.005609, allocations: 12.03 kB / 442.9 MB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.005755, allocations: 20.88 kB / 442.9 MB, free: 5.293 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.005949, allocations: 133.7 kB / 443 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.005967, allocations: 4.375 kB / 443.1 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.806e-05/0.005985, allocations: 8.375 kB / 443.1 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002231/0.006208, allocations: 94.2 kB / 443.2 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.006217, allocations: 192 / 443.2 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.006231, allocations: 4.359 kB / 443.2 MB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.006239, allocations: 11.88 kB / 443.2 MB, free: 5.012 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.006378, allocations: 43.97 kB / 443.2 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.006862, allocations: 256.5 kB / 443.5 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.007078, allocations: 82.53 kB / 443.5 MB, free: 4.598 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.007181, allocations: 48.83 kB / 443.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.007199, allocations: 3.984 kB / 443.6 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.007386, allocations: 107.2 kB / 443.7 MB, free: 4.426 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.793e-06/0.007388, allocations: 0 / 443.7 MB, free: 4.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004704/0.007858, allocations: 193.7 kB / 443.9 MB, free: 4.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.007912, allocations: 59.39 kB / 443.9 MB, free: 4.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.008013, allocations: 121.8 kB / 444.1 MB, free: 4.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.008042, allocations: 33.92 kB / 444.1 MB, free: 3.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.068e-05/0.008102, allocations: 96.34 kB / 444.2 MB, free: 3.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.008145, allocations: 43.69 kB / 444.2 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.577e-05/0.008201, allocations: 37.64 kB / 444.3 MB, free: 3.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.008344, allocations: 330.8 kB / 444.6 MB, free: 3.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.008459, allocations: 35.97 kB / 444.6 MB, free: 3.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.008586, allocations: 84.2 kB / 444.7 MB, free: 3.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.008813, allocations: 115.6 kB / 444.8 MB, free: 3.215 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.008817, allocations: 3.984 kB / 444.8 MB, free: 3.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002965/0.009114, allocations: 165.6 kB / 445 MB, free: 3.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.009127, allocations: 4 kB / 445 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.009131, allocations: 0 / 445 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.009147, allocations: 4 kB / 445 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.009261, allocations: 19.98 kB / 445 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.009268, allocations: 3.984 kB / 445 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.961e-05/0.009338, allocations: 23.83 kB / 445 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.00935, allocations: 4 kB / 445 MB, free: 2.984 MB / 366.1 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.0001089/0.009459, allocations: 132.4 kB / 445.2 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.2e-05/0.009481, allocations: 7.953 kB / 445.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.009513, allocations: 20.44 kB / 445.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.009515, allocations: 0 / 445.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.009519, allocations: 0 / 445.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.009526, allocations: 3.984 kB / 445.2 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005405/0.01007, allocations: 386 kB / 445.6 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01007, allocations: 0 / 445.6 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.634e-05/0.01012, allocations: 11.98 kB / 445.6 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01013, allocations: 0 / 445.6 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.01014, allocations: 4 kB / 445.6 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01014, allocations: 0 / 445.6 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.01014, allocations: 8 kB / 445.6 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003609/0.0105, allocations: 274.8 kB / 445.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.464e-05/0.01052, allocations: 7.953 kB / 445.9 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.01054, allocations: 8 kB / 445.9 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.01065, allocations: 7.984 kB / 445.9 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.0107, allocations: 15.92 kB / 445.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.01072, allocations: 7.938 kB / 445.9 MB, free: 2.047 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.851e-05/0.01078, allocations: 95.27 kB / 446 MB, free: 1.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.01078, allocations: 4 kB / 446 MB, free: 1.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.01102, allocations: 20 kB / 446 MB, free: 1.93 MB / 366.1 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.0001104/0.01113, allocations: 115.1 kB / 446.2 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002689/0.01139, allocations: 95.89 kB / 446.2 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.0114, allocations: 0 / 446.2 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.01151, allocations: 51.97 kB / 446.3 MB, free: 1.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.01176, allocations: 7.938 kB / 446.3 MB, free: 1.656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004196/0.01218, allocations: 217.8 kB / 446.5 MB, free: 1.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.711e-05/0.01226, allocations: 75.33 kB / 446.6 MB, free: 1.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.631e-05/0.0123, allocations: 12.97 kB / 446.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.13e-05/0.01234, allocations: 16.5 kB / 446.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.01234, allocations: 0 / 446.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of Templates: time 0.003553/0.01589, allocations: 1.074 MB / 447.7 MB, free: 240 kB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.434340290725231]