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.001293/0.001293, allocations: 113.2 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2013/0.2013, allocations: 46.11 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 79.88 kB / 482 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2749, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002522/0.2774, allocations: 1.556 MB / 0.5332 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000942/0.2784, allocations: 0.5602 MB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.883e-05/0.2785, allocations: 1.875 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.162e-05/0.2785, allocations: 7.922 kB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.608e-05/0.2786, allocations: 13.84 kB / 0.5337 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000232/0.2788, allocations: 53.34 kB / 0.5338 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.279, allocations: 95.06 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.929e-05/0.2791, allocations: 14.17 kB / 0.5339 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.2792, allocations: 46.41 kB / 0.5339 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.949e-05/0.2793, allocations: 44.64 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.2794, allocations: 6.656 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.323e-05/0.2794, allocations: 9.625 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.2794, allocations: 20.05 kB / 0.534 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.118e-05/0.2795, allocations: 41.22 kB / 0.5341 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.2797, allocations: 82.09 kB / 0.5341 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2797, allocations: 0 / 0.5341 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2797, allocations: 4 kB / 0.5341 GB, free: 11.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2797, allocations: 0 / 0.5341 GB, free: 11.64 MB / 398.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.0007146/0.2804, allocations: 407.5 kB / 0.5345 GB, free: 11.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2805, allocations: 8.25 kB / 0.5345 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.2806, allocations: 19.83 kB / 0.5346 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.2809, allocations: 192.5 kB / 0.5347 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.2809, allocations: 7.109 kB / 0.5347 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.2809, allocations: 5.875 kB / 0.5347 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.2811, allocations: 96.52 kB / 0.5348 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.2812, allocations: 5.359 kB / 0.5348 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.2812, allocations: 4 kB / 0.5348 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2812, allocations: 5.312 kB / 0.5349 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001367/0.2813, allocations: 46.09 kB / 0.5349 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.2818, allocations: 336.3 kB / 0.5352 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.2821, allocations: 94.53 kB / 0.5353 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.582e-05/0.2822, allocations: 42.84 kB / 0.5353 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.2822, allocations: 5.359 kB / 0.5354 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000183/0.2824, allocations: 100.2 kB / 0.5355 GB, free: 10.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.2824, allocations: 3.938 kB / 0.5355 GB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004315/0.2828, allocations: 193.7 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.2829, allocations: 58.84 kB / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.033e-05/0.283, allocations: 119.9 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.283, allocations: 32.58 kB / 0.5358 GB, free: 10.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.283, allocations: 98.56 kB / 0.5359 GB, free: 9.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.562e-05/0.2831, allocations: 36.83 kB / 0.536 GB, free: 9.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-05/0.2831, allocations: 38.89 kB / 0.536 GB, free: 9.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2833, allocations: 324.8 kB / 0.5363 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.809e-05/0.2834, allocations: 37.25 kB / 0.5364 GB, free: 9.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.2835, allocations: 75.98 kB / 0.5364 GB, free: 9.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.2837, allocations: 118.9 kB / 0.5365 GB, free: 9.434 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2837, allocations: 0 / 0.5365 GB, free: 9.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002884/0.284, allocations: 168 kB / 0.5367 GB, free: 9.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.2841, allocations: 5.969 kB / 0.5367 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.2841, allocations: 1.188 kB / 0.5367 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2841, allocations: 6.312 kB / 0.5367 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.2842, allocations: 27.64 kB / 0.5367 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.2842, allocations: 5.969 kB / 0.5367 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.459e-05/0.2843, allocations: 12.44 kB / 0.5368 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.2843, allocations: 8.719 kB / 0.5368 GB, free: 9.309 MB / 398.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.0001124/0.2845, allocations: 137.1 kB / 0.5369 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/0.2845, allocations: 8.062 kB / 0.5369 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.2845, allocations: 10.66 kB / 0.5369 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2845, allocations: 0 / 0.5369 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2845, allocations: 0 / 0.5369 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.2846, allocations: 96.22 kB / 0.537 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.2846, allocations: 1.188 kB / 0.537 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.996e-05/0.2847, allocations: 13.61 kB / 0.537 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.2848, allocations: 12.45 kB / 0.537 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003351/0.2851, allocations: 229.7 kB / 0.5372 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003411/0.2854, allocations: 332 kB / 0.5376 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001062/0.2856, allocations: 49.61 kB / 0.5376 GB, free: 8.594 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.154e-05/0.2856, allocations: 92.08 kB / 0.5377 GB, free: 8.512 MB / 398.1 MB Notification: Performance of Backend: time 3.4e-07/0.2856, allocations: 5.438 kB / 0.5377 GB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004449/0.2861, allocations: 148.7 kB / 0.5378 GB, free: 8.41 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004868/0.2866, allocations: 0.6184 MB / 0.5385 GB, free: 7.789 MB / 398.1 MB Notification: Performance of Templates: time 0.003436/0.29, allocations: 1.183 MB / 0.5396 GB, free: 7.188 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches