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.001224/0.001224, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.19/0.19, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 82.55 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09337/0.0947, allocations: 62.44 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002454/0.09719, allocations: 1.537 MB / 483 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007852/0.09799, allocations: 0.5493 MB / 483.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.059e-05/0.09805, allocations: 7.938 kB / 483.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.472e-05/0.09808, allocations: 7.875 kB / 483.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.869e-05/0.09816, allocations: 11.86 kB / 483.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001986/0.09837, allocations: 51.88 kB / 483.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.0985, allocations: 95.75 kB / 483.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.21e-05/0.09859, allocations: 7.984 kB / 483.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.09871, allocations: 51.78 kB / 483.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.205e-05/0.09879, allocations: 51.75 kB / 483.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.09882, allocations: 8 kB / 483.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.021e-05/0.09886, allocations: 8 kB / 483.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.212e-05/0.09889, allocations: 19.92 kB / 483.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.559e-05/0.09894, allocations: 43.78 kB / 483.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.09907, allocations: 83.7 kB / 484 MB, free: 1.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.09908, allocations: 0 / 484 MB, free: 1.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09909, allocations: 0 / 484 MB, free: 1.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.0991, allocations: 0 / 484 MB, free: 1.984 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.0005548/0.09965, allocations: 403.2 kB / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.09969, allocations: 16.03 kB / 484.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.09982, allocations: 16.83 kB / 484.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.1, allocations: 192.2 kB / 484.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.1, allocations: 4.375 kB / 484.6 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.1001, allocations: 8.375 kB / 484.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.1002, allocations: 93.89 kB / 484.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.1003, allocations: 0 / 484.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.1003, allocations: 7.984 kB / 484.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1003, allocations: 0 / 484.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.1004, allocations: 51.97 kB / 484.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004655/0.1009, allocations: 328.6 kB / 485.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.1011, allocations: 94.48 kB / 485.2 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.412e-05/0.1012, allocations: 44.83 kB / 485.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.1012, allocations: 8 kB / 485.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000164/0.1014, allocations: 111.4 kB / 485.3 MB, free: 484 kB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.1014, allocations: 0 / 485.3 MB, free: 484 kB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004128/0.1018, allocations: 197.5 kB / 485.5 MB, free: 280 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.1019, allocations: 55.41 kB / 485.6 MB, free: 212 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.789e-05/0.1019, allocations: 121.8 kB / 485.7 MB, free: 80 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.102, allocations: 37.69 kB / 485.7 MB, free: 36 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.102, allocations: 88.33 kB / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.1021, allocations: 43.53 kB / 485.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.1021, allocations: 37.7 kB / 485.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.716e-05/0.1022, allocations: 326.8 kB / 486.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.839e-05/0.1023, allocations: 31.98 kB / 486.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1024, allocations: 80.27 kB / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.1026, allocations: 112.2 kB / 486.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1026, allocations: 4 kB / 486.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000257/0.1029, allocations: 161.4 kB / 486.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.1029, allocations: 4 kB / 486.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1029, allocations: 4 kB / 486.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.1029, allocations: 0 / 486.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.103, allocations: 31.86 kB / 486.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.1031, allocations: 11.92 kB / 486.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.91e-05/0.1031, allocations: 12.06 kB / 486.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.1031, allocations: 8.219 kB / 486.7 MB, free: 15.04 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 8.629e-05/0.1032, allocations: 128.1 kB / 486.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.1033, allocations: 11.84 kB / 486.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.738e-05/0.1033, allocations: 16.48 kB / 486.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1033, allocations: 0 / 486.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1033, allocations: 7.875 kB / 486.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1033, allocations: 4 kB / 486.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004841/0.1038, allocations: 450 kB / 487.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1038, allocations: 0 / 487.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.154e-05/0.1039, allocations: 15.88 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1039, allocations: 0 / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.1039, allocations: 7.984 kB / 487.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1039, allocations: 0 / 487.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1039, allocations: 0 / 487.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.1042, allocations: 251.4 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.99e-05/0.1043, allocations: 92.89 kB / 487.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.442e-05/0.1043, allocations: 7.984 kB / 487.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1044, allocations: 8 kB / 487.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.1044, allocations: 7.984 kB / 487.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.1045, allocations: 7.984 kB / 487.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.277e-05/0.1045, allocations: 91.28 kB / 487.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1045, allocations: 0 / 487.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000247/0.1048, allocations: 31.98 kB / 487.8 MB, free: 13.83 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 8.259e-05/0.1048, allocations: 100 kB / 487.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002452/0.1051, allocations: 107.9 kB / 488 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1051, allocations: 0 / 488 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.1052, allocations: 55.91 kB / 488 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.1055, allocations: 18.52 kB / 488.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003537/0.1058, allocations: 208.3 kB / 488.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.1061, allocations: 0.6924 MB / 489 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.772e-05/0.1061, allocations: 16.81 kB / 489 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.1061, allocations: 15.44 kB / 489 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1062, allocations: 0 / 489 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Templates: time 0.002793/0.1089, allocations: 1.048 MB / 490 MB, free: 11.52 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 -s gbode -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