Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001149/0.001149, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.216/0.216, allocations: 46.12 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 79 kB / 417.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1325, allocations: 62.47 MB / 480.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003076/0.1356, allocations: 1.545 MB / 481.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1368, allocations: 0.5454 MB / 482.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.577e-05/0.1369, allocations: 0 / 482.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.742e-05/0.137, allocations: 7.938 kB / 482.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.1371, allocations: 23.73 kB / 482.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.1374, allocations: 47.88 kB / 482.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.1376, allocations: 87.77 kB / 482.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.1377, allocations: 11.98 kB / 482.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.1379, allocations: 55.78 kB / 482.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.29e-05/0.138, allocations: 39.83 kB / 482.4 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.1381, allocations: 8 kB / 482.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.419e-05/0.1381, allocations: 12 kB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.778e-05/0.1382, allocations: 27.91 kB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.518e-05/0.1382, allocations: 35.8 kB / 482.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.1384, allocations: 80.05 kB / 482.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1384, allocations: 0 / 482.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1385, allocations: 0 / 482.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.1385, allocations: 3.938 kB / 482.6 MB, free: 2.691 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.0007521/0.1392, allocations: 403.2 kB / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.1393, allocations: 12.03 kB / 483 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.1395, allocations: 16.83 kB / 483 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.1397, allocations: 196.1 kB / 483.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.1397, allocations: 8.375 kB / 483.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.1398, allocations: 4.375 kB / 483.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002336/0.14, allocations: 97.94 kB / 483.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.14, allocations: 0 / 483.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.1401, allocations: 4 kB / 483.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.1401, allocations: 4 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.1402, allocations: 43.97 kB / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006055/0.1408, allocations: 332.6 kB / 483.7 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.1411, allocations: 90.53 kB / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1412, allocations: 48.84 kB / 483.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.1412, allocations: 0 / 483.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.1415, allocations: 111.5 kB / 483.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.975e-06/0.1415, allocations: 0 / 483.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004864/0.142, allocations: 197.5 kB / 484.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.142, allocations: 59.41 kB / 484.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.1422, allocations: 125.8 kB / 484.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.1422, allocations: 33.7 kB / 484.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.1423, allocations: 92.33 kB / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.1423, allocations: 35.55 kB / 484.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.639e-05/0.1424, allocations: 37.7 kB / 484.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1425, allocations: 322.8 kB / 484.8 MB, free: 248 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.994e-05/0.1426, allocations: 43.98 kB / 484.9 MB, free: 204 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.1427, allocations: 72.27 kB / 484.9 MB, free: 116 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.143, allocations: 123.5 kB / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.143, allocations: 0 / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002973/0.1433, allocations: 165.4 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1433, allocations: 6.656 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1433, allocations: 4 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1434, allocations: 0 / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.1435, allocations: 23.92 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.1435, allocations: 12.06 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.1436, allocations: 11.94 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.1436, allocations: 4 kB / 485.3 MB, free: 15.75 MB / 366.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.0001361/0.1438, allocations: 132 kB / 485.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.1438, allocations: 11.89 kB / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/0.1438, allocations: 12.5 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1438, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.1438, allocations: 7.875 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1439, allocations: 4 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006133/0.1445, allocations: 450.3 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1445, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.293e-05/0.1445, allocations: 11.94 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.1446, allocations: 7.984 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1446, allocations: 3.938 kB / 485.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1446, allocations: 0 / 485.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1446, allocations: 0 / 485.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003516/0.145, allocations: 259.4 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.145, allocations: 96.88 kB / 486.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.1451, allocations: 0 / 486.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.1452, allocations: 11.98 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.1452, allocations: 11.94 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.1453, allocations: 7.984 kB / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.954e-05/0.1453, allocations: 95.27 kB / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1453, allocations: 0 / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.1456, allocations: 24 kB / 486.4 MB, free: 14.53 MB / 366.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.0001255/0.1458, allocations: 96.09 kB / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003093/0.1461, allocations: 123.4 kB / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1461, allocations: 0 / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.1462, allocations: 52.23 kB / 486.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.1465, allocations: 15.98 kB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004988/0.147, allocations: 207.2 kB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1474, allocations: 0.7002 MB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.077e-05/0.1474, allocations: 12.88 kB / 487.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.086e-05/0.1475, allocations: 19.42 kB / 487.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1475, allocations: 0 / 487.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of Templates: time 0.003654/0.1511, allocations: 1.023 MB / 488.6 MB, free: 12.24 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches