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.00138/0.00138, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.001412/0.001412, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.522/1.522, allocations: 177.2 MB / 204.9 MB, free: 8.945 MB / 190.1 MB " [Timeout remaining time 178] 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.2127/0.2127, allocations: 32.8 MB / 294.1 MB, free: 52 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00214/0.00214, allocations: 63.89 kB / 440.5 MB, free: 9.477 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.342, allocations: 65.45 MB / 0.4941 GB, free: 31.42 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002431/0.3444, allocations: 1.543 MB / 0.4956 GB, free: 30.35 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008519/0.3452, allocations: 0.5106 MB / 0.4961 GB, free: 30.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.627e-05/0.3453, allocations: 3.094 kB / 0.4961 GB, free: 30.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.924e-05/0.3453, allocations: 11.88 kB / 0.4962 GB, free: 30 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.679e-05/0.3454, allocations: 15.28 kB / 0.4962 GB, free: 29.99 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.3457, allocations: 54.7 kB / 0.4962 GB, free: 29.96 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.3458, allocations: 87.62 kB / 0.4963 GB, free: 29.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.3459, allocations: 10 kB / 0.4963 GB, free: 29.92 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.346, allocations: 49.16 kB / 0.4964 GB, free: 29.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.969e-05/0.3461, allocations: 38.56 kB / 0.4964 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.3461, allocations: 6.156 kB / 0.4964 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.229e-05/0.3462, allocations: 13.44 kB / 0.4964 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.398e-05/0.3462, allocations: 26.16 kB / 0.4964 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.171e-05/0.3462, allocations: 29.08 kB / 0.4965 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.3463, allocations: 86 kB / 0.4966 GB, free: 29.81 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3464, allocations: 0 / 0.4966 GB, free: 29.81 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3464, allocations: 7.312 kB / 0.4966 GB, free: 29.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.3464, allocations: 0 / 0.4966 GB, free: 29.8 MB / 446.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.0005828/0.3469, allocations: 327.8 kB / 0.4969 GB, free: 29.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.347, allocations: 13.16 kB / 0.4969 GB, free: 29.51 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.3471, allocations: 20.36 kB / 0.4969 GB, free: 29.51 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/0.3473, allocations: 138.2 kB / 0.497 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.3473, allocations: 3.406 kB / 0.497 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.3473, allocations: 10.41 kB / 0.497 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.3475, allocations: 90.56 kB / 0.4971 GB, free: 29.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/0.3475, allocations: 0 / 0.4971 GB, free: 29.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.3475, allocations: 7.938 kB / 0.4971 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3476, allocations: 2.938 kB / 0.4971 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.3477, allocations: 51.33 kB / 0.4972 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004203/0.3481, allocations: 254.8 kB / 0.4974 GB, free: 29.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.3483, allocations: 92.89 kB / 0.4975 GB, free: 29.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.61e-05/0.3484, allocations: 42.25 kB / 0.4976 GB, free: 28.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.3484, allocations: 3.938 kB / 0.4976 GB, free: 28.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001577/0.3486, allocations: 103.3 kB / 0.4977 GB, free: 28.92 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.3486, allocations: 4 kB / 0.4977 GB, free: 28.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004103/0.349, allocations: 191.2 kB / 0.4979 GB, free: 28.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.349, allocations: 57.98 kB / 0.4979 GB, free: 28.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.97e-05/0.3491, allocations: 117 kB / 0.498 GB, free: 28.67 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.3491, allocations: 36.41 kB / 0.4981 GB, free: 28.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.3491, allocations: 99.61 kB / 0.4982 GB, free: 28.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.3492, allocations: 36.86 kB / 0.4982 GB, free: 28.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.646e-05/0.3492, allocations: 37.84 kB / 0.4982 GB, free: 28.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.04e-05/0.3493, allocations: 325.3 kB / 0.4985 GB, free: 28.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.545e-05/0.3494, allocations: 41.11 kB / 0.4986 GB, free: 28.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.679e-05/0.3494, allocations: 80.89 kB / 0.4986 GB, free: 28.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.3496, allocations: 116.7 kB / 0.4988 GB, free: 28.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3496, allocations: 0 / 0.4988 GB, free: 28.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002349/0.3499, allocations: 165.5 kB / 0.4989 GB, free: 27.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.3499, allocations: 9.578 kB / 0.4989 GB, free: 27.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3499, allocations: 0 / 0.4989 GB, free: 27.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3499, allocations: 3 kB / 0.4989 GB, free: 27.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.35, allocations: 18.41 kB / 0.4989 GB, free: 27.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.35, allocations: 6.719 kB / 0.499 GB, free: 27.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.055e-05/0.3501, allocations: 17.92 kB / 0.499 GB, free: 27.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.3501, allocations: 3 kB / 0.499 GB, free: 27.92 MB / 446.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 6.895e-05/0.3501, allocations: 136.9 kB / 0.4991 GB, free: 27.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.3502, allocations: 10.3 kB / 0.4991 GB, free: 27.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.3502, allocations: 8.438 kB / 0.4991 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3502, allocations: 10.78 kB / 0.4991 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3502, allocations: 0 / 0.4991 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3502, allocations: 7.312 kB / 0.4991 GB, free: 27.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004017/0.3506, allocations: 393.1 kB / 0.4995 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3506, allocations: 0 / 0.4995 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.988e-05/0.3507, allocations: 6.406 kB / 0.4995 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3507, allocations: 0 / 0.4995 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.3507, allocations: 18.42 kB / 0.4995 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3507, allocations: 0 / 0.4995 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3507, allocations: 0 / 0.4995 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002662/0.3509, allocations: 262.2 kB / 0.4998 GB, free: 27.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.166e-05/0.351, allocations: 7.141 kB / 0.4998 GB, free: 27.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.351, allocations: 11.41 kB / 0.4998 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.3511, allocations: 6.281 kB / 0.4998 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-05/0.3511, allocations: 14.03 kB / 0.4998 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.3511, allocations: 6.344 kB / 0.4998 GB, free: 27.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.173e-05/0.3512, allocations: 95.98 kB / 0.4999 GB, free: 27.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3512, allocations: 0 / 0.4999 GB, free: 27.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002434/0.3514, allocations: 19.75 kB / 0.4999 GB, free: 27.18 MB / 446.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 6.959e-05/0.3515, allocations: 110.6 kB / 0.5 GB, free: 27.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.3517, allocations: 100.4 kB / 0.5001 GB, free: 27.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3517, allocations: 0 / 0.5001 GB, free: 27.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.3518, allocations: 48.73 kB / 0.5002 GB, free: 27.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.3521, allocations: 15.39 kB / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/0.3525, allocations: 209.5 kB / 0.5004 GB, free: 26.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.484e-05/0.3525, allocations: 88.75 kB / 0.5005 GB, free: 26.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.752e-05/0.3526, allocations: 10.8 kB / 0.5005 GB, free: 26.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.463e-05/0.3526, allocations: 14.78 kB / 0.5005 GB, free: 26.79 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.3526, allocations: 3.938 kB / 0.5005 GB, free: 26.79 MB / 446.1 MB Notification: Performance of Templates: time 0.003432/0.356, allocations: 1.072 MB / 0.5016 GB, free: 26.62 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/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.958691241918132]