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.001891/0.001891, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001748/0.001748, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.486/1.486, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.2315/0.2315, allocations: 46.97 MB / 361.6 MB, free: 4.047 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.002072/0.002072, allocations: 67.91 kB / 0.4973 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3248, allocations: 66.03 MB / 0.5618 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002918/0.3277, allocations: 1.519 MB / 0.5633 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.3288, allocations: 0.5182 MB / 0.5638 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.064e-05/0.3289, allocations: 11.94 kB / 0.5638 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.667e-05/0.3289, allocations: 3.938 kB / 0.5638 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.408e-05/0.329, allocations: 15.86 kB / 0.5638 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002554/0.3293, allocations: 51.88 kB / 0.5639 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.3294, allocations: 91.7 kB / 0.564 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.833e-05/0.3295, allocations: 7.984 kB / 0.564 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.3297, allocations: 47.84 kB / 0.564 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.3298, allocations: 43.81 kB / 0.5641 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.3298, allocations: 8 kB / 0.5641 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.093e-05/0.3299, allocations: 12 kB / 0.5641 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.889e-05/0.3299, allocations: 19.92 kB / 0.5641 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.165e-05/0.3299, allocations: 31.8 kB / 0.5641 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.3301, allocations: 90.08 kB / 0.5642 GB, free: 1.715 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.3301, allocations: 0 / 0.5642 GB, free: 1.715 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3301, allocations: 3.938 kB / 0.5642 GB, free: 1.711 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3301, allocations: 0 / 0.5642 GB, free: 1.711 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.0006869/0.3308, allocations: 336.1 kB / 0.5645 GB, free: 1.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3308, allocations: 8.031 kB / 0.5645 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.331, allocations: 20.88 kB / 0.5646 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.3312, allocations: 138.3 kB / 0.5647 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.3313, allocations: 4.375 kB / 0.5647 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.3313, allocations: 12.38 kB / 0.5647 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.3315, allocations: 93.89 kB / 0.5648 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3315, allocations: 0 / 0.5648 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.3315, allocations: 3.984 kB / 0.5648 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.3315, allocations: 8 kB / 0.5648 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.3317, allocations: 51.91 kB / 0.5649 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005228/0.3322, allocations: 252.4 kB / 0.5651 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.3324, allocations: 94.39 kB / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3325, allocations: 40.84 kB / 0.5652 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.3326, allocations: 3.984 kB / 0.5652 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.3328, allocations: 110.9 kB / 0.5653 GB, free: 460 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.3328, allocations: 0 / 0.5653 GB, free: 460 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004884/0.3333, allocations: 193.6 kB / 0.5655 GB, free: 260 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.3333, allocations: 63.39 kB / 0.5656 GB, free: 184 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.3334, allocations: 118.1 kB / 0.5657 GB, free: 56 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.3334, allocations: 37.64 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.797e-05/0.3335, allocations: 92.36 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.3336, allocations: 35.75 kB / 0.5659 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.203e-05/0.3336, allocations: 37.7 kB / 0.5659 GB, free: 15.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.3338, allocations: 330.8 kB / 0.5662 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.3339, allocations: 35.97 kB / 0.5662 GB, free: 15.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.3341, allocations: 80.09 kB / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002311/0.3343, allocations: 116.2 kB / 0.5664 GB, free: 15.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3343, allocations: 0 / 0.5664 GB, free: 15.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003121/0.3346, allocations: 165.1 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3346, allocations: 4 kB / 0.5666 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.3346, allocations: 0 / 0.5666 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3346, allocations: 4 kB / 0.5666 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.3348, allocations: 27.92 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3348, allocations: 0 / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.711e-05/0.3349, allocations: 15.89 kB / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.3349, allocations: 8.125 kB / 0.5666 GB, free: 15.03 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.0001194/0.335, allocations: 127.8 kB / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.335, allocations: 15.89 kB / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.3351, allocations: 12.44 kB / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3351, allocations: 0 / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3351, allocations: 0 / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3351, allocations: 11.91 kB / 0.5668 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005872/0.3357, allocations: 382.1 kB / 0.5672 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3357, allocations: 0 / 0.5672 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.168e-05/0.3357, allocations: 19.92 kB / 0.5672 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3357, allocations: 4 kB / 0.5672 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.3357, allocations: 3.938 kB / 0.5672 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.3357, allocations: 7.984 kB / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3357, allocations: 0 / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003837/0.3361, allocations: 267.4 kB / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.3361, allocations: 7.953 kB / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.3362, allocations: 7.875 kB / 0.5675 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.3363, allocations: 15.92 kB / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.3363, allocations: 11.98 kB / 0.5675 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.3363, allocations: 4 kB / 0.5675 GB, free: 14.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.427e-05/0.3364, allocations: 95.27 kB / 0.5676 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3364, allocations: 0 / 0.5676 GB, free: 13.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002582/0.3367, allocations: 20 kB / 0.5676 GB, free: 13.96 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.0001149/0.3368, allocations: 107.2 kB / 0.5677 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002815/0.3371, allocations: 95.89 kB / 0.5678 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3371, allocations: 4 kB / 0.5678 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.3372, allocations: 56.16 kB / 0.5679 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.3375, allocations: 11.98 kB / 0.5679 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004678/0.3379, allocations: 237.4 kB / 0.5681 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.948e-05/0.338, allocations: 79.08 kB / 0.5682 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.615e-05/0.3381, allocations: 19.44 kB / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3381, allocations: 0 / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of Templates: time 0.003099/0.3412, allocations: 1.298 MB / 0.5695 GB, free: 12.01 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.369898451026529]