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.000944/0.000944, allocations: 93.97 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 204 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2434/0.2434, allocations: 45.92 MB / 344 MB, free: 12.13 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002724/0.0002724, allocations: 4 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1862, allocations: 63.46 MB / 481.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002599/0.1889, allocations: 1.236 MB / 482.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.1901, allocations: 0.4953 MB / 483.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.494e-05/0.1902, allocations: 4 kB / 483.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.401e-05/0.1903, allocations: 3.938 kB / 483.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.1904, allocations: 7.984 kB / 483.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003269/0.1908, allocations: 35.89 kB / 483.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001617/0.1909, allocations: 55.88 kB / 483.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.1911, allocations: 7.984 kB / 483.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002386/0.1913, allocations: 39.84 kB / 483.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.1915, allocations: 43.88 kB / 483.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.167e-05/0.1915, allocations: 4 kB / 483.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.125e-05/0.1916, allocations: 7.938 kB / 483.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.101e-05/0.1916, allocations: 15.92 kB / 483.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.967e-05/0.1917, allocations: 41.64 kB / 483.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.1918, allocations: 60.11 kB / 483.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1918, allocations: 0 / 483.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.1918, allocations: 0 / 483.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1919, allocations: 0 / 483.4 MB, free: 3.336 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.0007121/0.1926, allocations: 391.1 kB / 483.8 MB, free: 2.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.1926, allocations: 12.03 kB / 483.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.1928, allocations: 19.89 kB / 483.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.193, allocations: 179 kB / 484 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.1931, allocations: 8 kB / 484 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.1931, allocations: 4 kB / 484 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002394/0.1933, allocations: 93.58 kB / 484.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1934, allocations: 0 / 484.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1934, allocations: 0 / 484.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/0.1934, allocations: 4 kB / 484.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.1936, allocations: 55.97 kB / 484.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006785/0.1942, allocations: 336.7 kB / 484.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.1945, allocations: 102.5 kB / 484.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.1945, allocations: 3.938 kB / 484.6 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.1948, allocations: 103.3 kB / 484.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.934e-06/0.1948, allocations: 0 / 484.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005068/0.1953, allocations: 201.7 kB / 484.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.1954, allocations: 55.41 kB / 485 MB, free: 1.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.1955, allocations: 129.9 kB / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1955, allocations: 29.7 kB / 485.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.113e-05/0.1956, allocations: 88.42 kB / 485.2 MB, free: 1.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.601e-05/0.1956, allocations: 39.91 kB / 485.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.165e-06/0.1957, allocations: 4 kB / 485.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1958, allocations: 327 kB / 485.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.922e-05/0.1959, allocations: 36.36 kB / 485.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.196, allocations: 87.89 kB / 485.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.1962, allocations: 55.61 kB / 485.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1962, allocations: 0 / 485.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003252/0.1965, allocations: 173.5 kB / 485.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.1966, allocations: 7.984 kB / 485.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.1966, allocations: 4 kB / 485.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1966, allocations: 0 / 485.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1967, allocations: 27.92 kB / 486 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.1967, allocations: 0 / 486 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.485e-05/0.1968, allocations: 19.89 kB / 486 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.1968, allocations: 4 kB / 486 MB, free: 0.5586 MB / 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 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$PRE.zeroOrderHold.ySample,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 0.0001357/0.197, allocations: 128.1 kB / 486.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.197, allocations: 11.89 kB / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.1971, allocations: 12.44 kB / 486.1 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.1971, allocations: 4 kB / 486.1 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1971, allocations: 0 / 486.1 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1971, allocations: 0 / 486.1 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006058/0.1977, allocations: 458.3 kB / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1977, allocations: 0 / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.682e-05/0.1978, allocations: 11.94 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.1978, allocations: 4 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1978, allocations: 3.984 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1978, allocations: 0 / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1978, allocations: 3.953 kB / 486.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003587/0.1982, allocations: 259.4 kB / 486.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.426e-05/0.1983, allocations: 88.95 kB / 486.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.1983, allocations: 11.98 kB / 487 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1984, allocations: 8 kB / 487 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/0.1985, allocations: 11.94 kB / 487 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.1985, allocations: 7.984 kB / 487 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.544e-05/0.1986, allocations: 95.28 kB / 487.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1986, allocations: 0 / 487.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000269/0.1989, allocations: 23.98 kB / 487.1 MB, free: 15.34 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 (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 0.0001458/0.199, allocations: 104.8 kB / 487.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002934/0.1993, allocations: 116 kB / 487.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1993, allocations: 8.062 kB / 487.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.1995, allocations: 59.16 kB / 487.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.1997, allocations: 11.98 kB / 487.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004719/0.2001, allocations: 217.5 kB / 487.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.2004, allocations: 0.6965 MB / 488.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.842e-05/0.2005, allocations: 12.88 kB / 488.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.696e-05/0.2005, allocations: 15.42 kB / 488.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2005, allocations: 0 / 488.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of Templates: time 0.003385/0.2039, allocations: 0.9007 MB / 489.2 MB, free: 13.15 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches