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.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 98.92 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 172.3 kB / 18.25 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2101/0.2101, allocations: 44.25 MB / 337.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003722/0.0003724, allocations: 16.91 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1385, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001819/0.1404, allocations: 1.243 MB / 473.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008883/0.1413, allocations: 486.9 kB / 474 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.291e-05/0.1414, allocations: 0 / 474 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.642e-05/0.1414, allocations: 3.938 kB / 474 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.577e-05/0.1415, allocations: 7.922 kB / 474 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.1417, allocations: 31.91 kB / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.1419, allocations: 87.7 kB / 474.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.142, allocations: 7.984 kB / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1421, allocations: 43.86 kB / 474.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.072e-05/0.1422, allocations: 35.83 kB / 474.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.1423, allocations: 4 kB / 474.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.373e-05/0.1423, allocations: 3.938 kB / 474.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.156e-05/0.1423, allocations: 19.97 kB / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.154e-05/0.1424, allocations: 65.48 kB / 474.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.1425, allocations: 56.06 kB / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1426, allocations: 0 / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1426, allocations: 0 / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.1426, allocations: 4 kB / 474.3 MB, free: 11.25 MB / 350.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.0006396/0.1432, allocations: 401.5 kB / 474.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1433, allocations: 12.03 kB / 474.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.1433, allocations: 8.844 kB / 474.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.1435, allocations: 180.2 kB / 474.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.1435, allocations: 8.375 kB / 474.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.1435, allocations: 8.375 kB / 474.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.1437, allocations: 85.95 kB / 475 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.1438, allocations: 0 / 475 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.1438, allocations: 7.984 kB / 475 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.1438, allocations: 4 kB / 475 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.1439, allocations: 47.97 kB / 475.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005502/0.1445, allocations: 324.7 kB / 475.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.1447, allocations: 90.55 kB / 475.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.561e-05/0.1448, allocations: 49 kB / 475.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.041e-05/0.1448, allocations: 7.984 kB / 475.5 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.1451, allocations: 102.4 kB / 475.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.1451, allocations: 0 / 475.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004373/0.1455, allocations: 197.7 kB / 475.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.1456, allocations: 55.41 kB / 475.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.1457, allocations: 125.7 kB / 476 MB, free: 9.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.1457, allocations: 33.7 kB / 476 MB, free: 9.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.884e-05/0.1458, allocations: 88.42 kB / 476.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.217e-05/0.1458, allocations: 35.55 kB / 476.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.1459, allocations: 21.7 kB / 476.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.146, allocations: 330.8 kB / 476.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.498e-05/0.1461, allocations: 35.98 kB / 476.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.1462, allocations: 81.06 kB / 476.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.1464, allocations: 125.1 kB / 476.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1464, allocations: 0 / 476.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002825/0.1467, allocations: 165.5 kB / 476.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1467, allocations: 8 kB / 476.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1467, allocations: 0 / 476.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1468, allocations: 4 kB / 476.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.1469, allocations: 23.92 kB / 476.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.1469, allocations: 3.938 kB / 476.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.51e-05/0.147, allocations: 23.83 kB / 477 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.147, allocations: 4 kB / 477 MB, free: 8.344 MB / 350.1 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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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) * 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.0001149/0.1471, allocations: 132 kB / 477.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.1471, allocations: 7.906 kB / 477.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.329e-05/0.1472, allocations: 12.5 kB / 477.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1472, allocations: 3.984 kB / 477.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1472, allocations: 3.938 kB / 477.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1472, allocations: 0 / 477.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005265/0.1477, allocations: 446.4 kB / 477.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1477, allocations: 0 / 477.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.422e-05/0.1478, allocations: 15.94 kB / 477.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1478, allocations: 0 / 477.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.1478, allocations: 7.984 kB / 477.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1478, allocations: 0 / 477.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1478, allocations: 4 kB / 477.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.1482, allocations: 258.3 kB / 477.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.098e-05/0.1482, allocations: 88.89 kB / 477.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.1482, allocations: 8 kB / 477.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.1484, allocations: 7.984 kB / 477.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.1484, allocations: 15.92 kB / 478 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1484, allocations: 4 kB / 478 MB, free: 7.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.013e-05/0.1485, allocations: 99.52 kB / 478.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1485, allocations: 4 kB / 478.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.1488, allocations: 20 kB / 478.1 MB, free: 7.129 MB / 350.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.00015/0.1489, allocations: 107.7 kB / 478.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002461/0.1492, allocations: 111.9 kB / 478.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1492, allocations: 0 / 478.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.1493, allocations: 60.22 kB / 478.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.1496, allocations: 15.92 kB / 478.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000439/0.15, allocations: 221.4 kB / 478.6 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.1503, allocations: 0.6965 MB / 479.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.966e-05/0.1504, allocations: 8.875 kB / 479.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.306e-05/0.1504, allocations: 15.44 kB / 479.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1504, allocations: 3.938 kB / 479.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of Templates: time 0.003232/0.1536, allocations: 0.905 MB / 480.2 MB, free: 4.941 MB / 350.1 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/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) Reference file matches