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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008525/0.0008526, allocations: 178 kB / 18.09 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.159/1.159, allocations: 223.3 MB / 242.1 MB, free: 9.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007358/0.0007358, allocations: 96.84 kB / 293.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2561/0.2561, allocations: 44.14 MB / 388.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003228, allocations: 12 kB / 461.1 MB, free: 1.348 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2487, allocations: 61.88 MB / 0.5107 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08972/0.3384, allocations: 86.81 MB / 0.5955 GB, free: 8.297 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.3386, allocations: 63.95 kB / 0.5956 GB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00406/0.3427, allocations: 1.552 MB / 0.5971 GB, free: 6.684 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3427, allocations: 0 / 0.5971 GB, free: 6.684 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.3427, allocations: 8 kB / 0.5971 GB, free: 6.676 MB / 410.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.0004507/0.3432, allocations: 383.2 kB / 0.5974 GB, free: 6.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.3432, allocations: 12.03 kB / 0.5975 GB, free: 6.238 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.3433, allocations: 4.938 kB / 0.5975 GB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.3434, allocations: 176.2 kB / 0.5976 GB, free: 6.023 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.3434, allocations: 8.375 kB / 0.5976 GB, free: 6.016 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.548e-05/0.3435, allocations: 8.375 kB / 0.5976 GB, free: 6.008 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.3436, allocations: 86.33 kB / 0.5977 GB, free: 5.918 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3437, allocations: 4.188 kB / 0.5977 GB, free: 5.914 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3437, allocations: 3.938 kB / 0.5977 GB, free: 5.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.3437, allocations: 0 / 0.5977 GB, free: 5.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.3438, allocations: 51.97 kB / 0.5978 GB, free: 5.859 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004677/0.3443, allocations: 332.7 kB / 0.5981 GB, free: 5.484 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.3445, allocations: 94.48 kB / 0.5982 GB, free: 5.383 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.577e-05/0.3446, allocations: 44.78 kB / 0.5982 GB, free: 5.336 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.3446, allocations: 4 kB / 0.5982 GB, free: 5.332 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000193/0.3448, allocations: 95.36 kB / 0.5983 GB, free: 5.227 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.803e-06/0.3448, allocations: 0 / 0.5983 GB, free: 5.227 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003908/0.3452, allocations: 194.8 kB / 0.5985 GB, free: 5.031 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.3452, allocations: 55.41 kB / 0.5986 GB, free: 4.965 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.493e-05/0.3453, allocations: 122.3 kB / 0.5987 GB, free: 4.836 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.3454, allocations: 37.64 kB / 0.5987 GB, free: 4.793 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.953e-05/0.3454, allocations: 84.42 kB / 0.5988 GB, free: 4.703 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.3455, allocations: 43.62 kB / 0.5988 GB, free: 4.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-06/0.3455, allocations: 7.938 kB / 0.5988 GB, free: 4.652 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.283e-05/0.3456, allocations: 322.8 kB / 0.5992 GB, free: 4.328 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.196e-05/0.3456, allocations: 39.98 kB / 0.5992 GB, free: 4.289 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.446e-05/0.3457, allocations: 73.12 kB / 0.5993 GB, free: 4.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.346, allocations: 129.1 kB / 0.5994 GB, free: 4.055 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.346, allocations: 0 / 0.5994 GB, free: 4.055 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002686/0.3463, allocations: 165.3 kB / 0.5995 GB, free: 3.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.3463, allocations: 7.938 kB / 0.5996 GB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3463, allocations: 0 / 0.5996 GB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.3463, allocations: 4 kB / 0.5996 GB, free: 3.875 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.3464, allocations: 27.92 kB / 0.5996 GB, free: 3.848 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.842e-06/0.3464, allocations: 4 kB / 0.5996 GB, free: 3.844 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.997e-05/0.3465, allocations: 16.03 kB / 0.5996 GB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.3465, allocations: 11.98 kB / 0.5996 GB, free: 3.816 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.559e-05/0.3466, allocations: 132 kB / 0.5997 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.3466, allocations: 11.91 kB / 0.5998 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.165e-05/0.3467, allocations: 8.5 kB / 0.5998 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3467, allocations: 0 / 0.5998 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3467, allocations: 0 / 0.5998 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.3467, allocations: 7.938 kB / 0.5998 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004554/0.3472, allocations: 446.5 kB / 0.6002 GB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3472, allocations: 0 / 0.6002 GB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.349e-05/0.3472, allocations: 11.98 kB / 0.6002 GB, free: 3.145 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3472, allocations: 3.938 kB / 0.6002 GB, free: 3.141 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.3473, allocations: 4 kB / 0.6002 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3473, allocations: 0 / 0.6002 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3473, allocations: 4 kB / 0.6002 GB, free: 3.133 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.3475, allocations: 258 kB / 0.6005 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.3476, allocations: 85.02 kB / 0.6005 GB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.3476, allocations: 7.922 kB / 0.6005 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.731e-05/0.3477, allocations: 12 kB / 0.6006 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/0.3478, allocations: 7.984 kB / 0.6006 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.3478, allocations: 11.98 kB / 0.6006 GB, free: 2.727 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.896e-05/0.3478, allocations: 91.22 kB / 0.6007 GB, free: 2.637 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3478, allocations: 0 / 0.6007 GB, free: 2.637 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002321/0.3481, allocations: 27.98 kB / 0.6007 GB, free: 2.609 MB / 410.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.8e-05/0.3482, allocations: 99.72 kB / 0.6008 GB, free: 2.504 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002145/0.3484, allocations: 112 kB / 0.6009 GB, free: 2.395 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3484, allocations: 3.938 kB / 0.6009 GB, free: 2.391 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.676e-05/0.3485, allocations: 47.98 kB / 0.6009 GB, free: 2.344 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.3488, allocations: 15.92 kB / 0.601 GB, free: 2.328 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/0.3491, allocations: 229.5 kB / 0.6012 GB, free: 2.074 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.3493, allocations: 0.6926 MB / 0.6019 GB, free: 1.355 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.965e-05/0.3494, allocations: 8.891 kB / 0.6019 GB, free: 1.348 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.3494, allocations: 15.42 kB / 0.6019 GB, free: 1.332 MB / 410.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3494, allocations: 0 / 0.6019 GB, free: 1.332 MB / 410.7 MB Notification: Performance of Templates: time 0.002573/0.352, allocations: 0.8841 MB / 0.6027 GB, free: 468 kB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (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) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches