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.001304/0.001304, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001364/0.001364, allocations: 214.8 kB / 24.48 MB, free: 3.957 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.468/1.468, allocations: 230.6 MB / 258.3 MB, free: 7.73 MB / 206.1 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.2289/0.2289, allocations: 46.95 MB / 361.6 MB, free: 4.094 MB / 286.1 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 0.001964/0.001964, allocations: 63.89 kB / 0.4973 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3502, allocations: 66.04 MB / 0.5618 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00292/0.3531, allocations: 1.519 MB / 0.5633 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.3541, allocations: 0.526 MB / 0.5638 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.867e-05/0.3542, allocations: 3.938 kB / 0.5638 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.436e-05/0.3542, allocations: 7.922 kB / 0.5638 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.606e-05/0.3543, allocations: 7.875 kB / 0.5638 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.3546, allocations: 63.81 kB / 0.5639 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.3547, allocations: 91.75 kB / 0.564 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.3549, allocations: 7.984 kB / 0.564 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.355, allocations: 43.86 kB / 0.564 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.72e-05/0.3551, allocations: 47.81 kB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.3551, allocations: 8 kB / 0.5641 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.761e-05/0.3552, allocations: 8 kB / 0.5641 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.391e-05/0.3552, allocations: 23.86 kB / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.269e-05/0.3553, allocations: 35.84 kB / 0.5641 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.3554, allocations: 82.23 kB / 0.5642 GB, free: 1.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3554, allocations: 4 kB / 0.5642 GB, free: 1.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3554, allocations: 3.938 kB / 0.5642 GB, free: 1.637 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3555, allocations: 0 / 0.5642 GB, free: 1.637 MB / 398.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.000709/0.3562, allocations: 330 kB / 0.5645 GB, free: 1.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.3562, allocations: 8.031 kB / 0.5646 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.3564, allocations: 24.81 kB / 0.5646 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.3566, allocations: 138.4 kB / 0.5647 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.3566, allocations: 12.31 kB / 0.5647 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.3567, allocations: 4.375 kB / 0.5647 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.3569, allocations: 89.95 kB / 0.5648 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3569, allocations: 0 / 0.5648 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.3569, allocations: 0 / 0.5648 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.3569, allocations: 4 kB / 0.5648 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.3571, allocations: 47.97 kB / 0.5649 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.3576, allocations: 268.4 kB / 0.5651 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.3578, allocations: 90.41 kB / 0.5652 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3579, allocations: 36.84 kB / 0.5652 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.358, allocations: 0 / 0.5652 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.3582, allocations: 111.1 kB / 0.5653 GB, free: 396 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.3582, allocations: 0 / 0.5653 GB, free: 396 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004945/0.3587, allocations: 197.6 kB / 0.5655 GB, free: 192 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.3587, allocations: 63.41 kB / 0.5656 GB, free: 116 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.3589, allocations: 118 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.3589, allocations: 37.64 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.359, allocations: 92.38 kB / 0.5658 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/0.359, allocations: 35.73 kB / 0.5659 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.629e-05/0.3591, allocations: 37.7 kB / 0.5659 GB, free: 15.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3593, allocations: 326.8 kB / 0.5662 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-05/0.3594, allocations: 31.98 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.3595, allocations: 81.27 kB / 0.5663 GB, free: 15.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/0.3597, allocations: 124.2 kB / 0.5664 GB, free: 15.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3597, allocations: 0 / 0.5664 GB, free: 15.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002883/0.36, allocations: 157.5 kB / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.36, allocations: 4 kB / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.36, allocations: 8.125 kB / 0.5666 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.3601, allocations: 0 / 0.5666 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.3602, allocations: 31.92 kB / 0.5666 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.3602, allocations: 4 kB / 0.5666 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.69e-05/0.3603, allocations: 11.89 kB / 0.5666 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.3603, allocations: 8 kB / 0.5666 GB, free: 14.95 MB / 414.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.000124/0.3604, allocations: 131.8 kB / 0.5668 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.3604, allocations: 7.953 kB / 0.5668 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.65e-05/0.3605, allocations: 12.44 kB / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3605, allocations: 0 / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3605, allocations: 4 kB / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3605, allocations: 7.922 kB / 0.5668 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005571/0.361, allocations: 389.8 kB / 0.5672 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.361, allocations: 3.938 kB / 0.5672 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.68e-05/0.3611, allocations: 15.92 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3611, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.3611, allocations: 3.938 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3611, allocations: 4 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3611, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.3615, allocations: 267.4 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.504e-05/0.3615, allocations: 7.953 kB / 0.5675 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.3615, allocations: 3.938 kB / 0.5675 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.3616, allocations: 19.92 kB / 0.5675 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.3617, allocations: 7.984 kB / 0.5675 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.3617, allocations: 4 kB / 0.5675 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.324e-05/0.3618, allocations: 91.7 kB / 0.5676 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3618, allocations: 0 / 0.5676 GB, free: 13.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.362, allocations: 23.94 kB / 0.5676 GB, free: 13.9 MB / 414.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.0001282/0.3621, allocations: 107.6 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002776/0.3624, allocations: 103.9 kB / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3624, allocations: 0 / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.3625, allocations: 51.89 kB / 0.5679 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.3628, allocations: 14.59 kB / 0.5679 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004923/0.3633, allocations: 245.3 kB / 0.5681 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.313e-05/0.3634, allocations: 83.33 kB / 0.5682 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.352e-05/0.3635, allocations: 15.44 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3635, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of Templates: time 0.002987/0.3664, allocations: 1.299 MB / 0.5695 GB, free: 11.93 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/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: 7.335850887990091]