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.00187/0.00187, allocations: 106.4 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002379/0.002379, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.3 MB, free: 9.129 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 46.12 MB / 343.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 76.62 kB / 416.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1247, allocations: 62.44 MB / 479.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002851/0.1276, allocations: 1.602 MB / 480.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009078/0.1285, allocations: 0.5533 MB / 481.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.795e-05/0.1286, allocations: 0 / 481.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.347e-05/0.1286, allocations: 7.922 kB / 481.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.621e-05/0.1288, allocations: 11.92 kB / 481.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.129, allocations: 43.89 kB / 481.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.1291, allocations: 87.7 kB / 481.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.782e-05/0.1292, allocations: 15.98 kB / 481.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.1294, allocations: 35.89 kB / 481.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.882e-05/0.1294, allocations: 47.77 kB / 481.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.1295, allocations: 4 kB / 481.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.031e-05/0.1295, allocations: 16 kB / 481.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.114e-05/0.1296, allocations: 19.91 kB / 481.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.036e-05/0.1296, allocations: 31.8 kB / 481.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.1298, allocations: 72.05 kB / 481.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1298, allocations: 0 / 481.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1298, allocations: 0 / 481.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1298, allocations: 4 kB / 481.8 MB, free: 3.145 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.0007134/0.1305, allocations: 407.2 kB / 482.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1306, allocations: 8.875 kB / 482.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.1307, allocations: 20.83 kB / 482.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.1309, allocations: 192.2 kB / 482.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.131, allocations: 8.375 kB / 482.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.131, allocations: 4.375 kB / 482.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.1312, allocations: 97.89 kB / 482.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.1312, allocations: 3.938 kB / 482.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.1313, allocations: 3.984 kB / 482.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.1313, allocations: 4 kB / 482.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.1314, allocations: 43.97 kB / 482.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006303/0.1321, allocations: 336.6 kB / 482.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.1323, allocations: 98.48 kB / 483 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1324, allocations: 48.83 kB / 483.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.1325, allocations: 0 / 483.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.1327, allocations: 95.36 kB / 483.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.1327, allocations: 4 kB / 483.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005142/0.1332, allocations: 200.8 kB / 483.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.1333, allocations: 55.53 kB / 483.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.1334, allocations: 125.8 kB / 483.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.1334, allocations: 29.7 kB / 483.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.809e-05/0.1335, allocations: 100.3 kB / 483.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.567e-05/0.1336, allocations: 39.53 kB / 483.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.676e-05/0.1336, allocations: 37.7 kB / 483.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1338, allocations: 326.8 kB / 484.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1339, allocations: 35.97 kB / 484.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.134, allocations: 76.27 kB / 484.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.1342, allocations: 120.2 kB / 484.3 MB, free: 436 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1342, allocations: 0 / 484.3 MB, free: 436 kB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002803/0.1345, allocations: 157.4 kB / 484.5 MB, free: 272 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1346, allocations: 8.125 kB / 484.5 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1346, allocations: 0 / 484.5 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1346, allocations: 4 kB / 484.5 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.1347, allocations: 23.92 kB / 484.5 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.1347, allocations: 3.938 kB / 484.5 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.037e-05/0.1348, allocations: 19.92 kB / 484.5 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.1348, allocations: 4.219 kB / 484.5 MB, free: 208 kB / 350.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.0001143/0.135, allocations: 128.1 kB / 484.6 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.135, allocations: 11.84 kB / 484.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.083e-05/0.135, allocations: 20.48 kB / 484.7 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.135, allocations: 7.938 kB / 484.7 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1351, allocations: 3.938 kB / 484.7 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1351, allocations: 4 kB / 484.7 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005624/0.1356, allocations: 442.4 kB / 485.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1356, allocations: 4 kB / 485.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-05/0.1357, allocations: 11.88 kB / 485.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1357, allocations: 4 kB / 485.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1357, allocations: 11.98 kB / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1358, allocations: 0 / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1358, allocations: 3.938 kB / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.1361, allocations: 254.5 kB / 485.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.401e-05/0.1361, allocations: 92.89 kB / 485.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.1362, allocations: 3.984 kB / 485.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.1363, allocations: 16 kB / 485.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.1363, allocations: 7.984 kB / 485.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.1364, allocations: 7.984 kB / 485.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.452e-05/0.1364, allocations: 87.28 kB / 485.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1364, allocations: 0 / 485.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002443/0.1367, allocations: 23.98 kB / 485.6 MB, free: 14.98 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.0001098/0.1368, allocations: 107.7 kB / 485.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002748/0.1371, allocations: 111.9 kB / 485.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1371, allocations: 0 / 485.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.1372, allocations: 55.91 kB / 485.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1375, allocations: 15.92 kB / 485.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004389/0.1379, allocations: 221.4 kB / 486.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.1382, allocations: 0.6926 MB / 486.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.286e-05/0.1383, allocations: 12.88 kB / 486.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.941e-05/0.1383, allocations: 11.44 kB / 486.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1383, allocations: 0 / 486.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of Templates: time 0.00329/0.1416, allocations: 0.962 MB / 487.8 MB, free: 12.76 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