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.001867/0.001867, allocations: 116.2 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002133/0.002133, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 75.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3364, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002519/0.339, allocations: 1.54 MB / 0.5325 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009599/0.3399, allocations: 0.5609 MB / 0.533 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.602e-05/0.34, allocations: 7.938 kB / 0.533 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.34, allocations: 5.344 kB / 0.533 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.045e-05/0.3401, allocations: 16.88 kB / 0.5331 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.3404, allocations: 56.69 kB / 0.5331 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.3406, allocations: 85.8 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.3407, allocations: 9.719 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.3408, allocations: 51.14 kB / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.355e-05/0.3409, allocations: 38.05 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.005e-05/0.341, allocations: 15.78 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.826e-05/0.341, allocations: 14.72 kB / 0.5333 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.585e-05/0.341, allocations: 22.88 kB / 0.5333 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.559e-05/0.3411, allocations: 37.83 kB / 0.5334 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.3413, allocations: 80.19 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3413, allocations: 1.281 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3413, allocations: 0 / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.3413, allocations: 0 / 0.5335 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.0006734/0.342, allocations: 411.2 kB / 0.5338 GB, free: 11.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.342, allocations: 9.625 kB / 0.5339 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.3421, allocations: 18.45 kB / 0.5339 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.3424, allocations: 192.4 kB / 0.5341 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.3424, allocations: 8.5 kB / 0.5341 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.3424, allocations: 9.875 kB / 0.5341 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.3427, allocations: 100.5 kB / 0.5342 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3427, allocations: 0 / 0.5342 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.3427, allocations: 1.375 kB / 0.5342 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3427, allocations: 1.375 kB / 0.5342 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3428, allocations: 50.08 kB / 0.5342 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.3434, allocations: 332.3 kB / 0.5345 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.3436, allocations: 102.5 kB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3437, allocations: 46.83 kB / 0.5347 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.3437, allocations: 1.375 kB / 0.5347 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001825/0.3439, allocations: 96.23 kB / 0.5348 GB, free: 10.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.3439, allocations: 0 / 0.5348 GB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004762/0.3444, allocations: 200.6 kB / 0.535 GB, free: 10.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.3445, allocations: 59.52 kB / 0.535 GB, free: 10.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.348e-05/0.3446, allocations: 115.6 kB / 0.5351 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.3446, allocations: 32.45 kB / 0.5352 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/0.3447, allocations: 99.06 kB / 0.5353 GB, free: 9.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.3447, allocations: 33.05 kB / 0.5353 GB, free: 9.945 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.3448, allocations: 34.38 kB / 0.5353 GB, free: 9.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3449, allocations: 329 kB / 0.5356 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.804e-05/0.345, allocations: 45.31 kB / 0.5357 GB, free: 9.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.3451, allocations: 75.33 kB / 0.5357 GB, free: 9.508 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.3454, allocations: 124.6 kB / 0.5359 GB, free: 9.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3454, allocations: 1.219 kB / 0.5359 GB, free: 9.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002868/0.3457, allocations: 159.5 kB / 0.536 GB, free: 9.332 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3457, allocations: 6.75 kB / 0.536 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.3457, allocations: 1.031 kB / 0.536 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.3458, allocations: 10.44 kB / 0.536 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3459, allocations: 23.61 kB / 0.5361 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.3459, allocations: 6.188 kB / 0.5361 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.478e-05/0.346, allocations: 16.52 kB / 0.5361 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.346, allocations: 4.375 kB / 0.5361 GB, free: 9.301 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.0001071/0.3461, allocations: 128.2 kB / 0.5362 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.3461, allocations: 8.562 kB / 0.5362 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.041e-05/0.3462, allocations: 10.81 kB / 0.5362 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3462, allocations: 9.141 kB / 0.5362 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3462, allocations: 4.906 kB / 0.5362 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3462, allocations: 0 / 0.5362 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005795/0.3468, allocations: 448 kB / 0.5367 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3468, allocations: 0 / 0.5367 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-05/0.3468, allocations: 10.72 kB / 0.5367 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.3469, allocations: 1.188 kB / 0.5367 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.3469, allocations: 1.156 kB / 0.5367 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.3469, allocations: 5.078 kB / 0.5367 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3469, allocations: 4 kB / 0.5367 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.3473, allocations: 259.6 kB / 0.5369 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.637e-05/0.3473, allocations: 86.98 kB / 0.537 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.3473, allocations: 2.062 kB / 0.537 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3475, allocations: 10.05 kB / 0.537 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.3475, allocations: 15.53 kB / 0.537 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.3475, allocations: 8.594 kB / 0.5371 GB, free: 8.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.188e-05/0.3476, allocations: 95.98 kB / 0.5371 GB, free: 8.344 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3476, allocations: 0 / 0.5371 GB, free: 8.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.3479, allocations: 21.94 kB / 0.5372 GB, free: 8.34 MB / 398.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.0001182/0.348, allocations: 103 kB / 0.5373 GB, free: 8.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002958/0.3483, allocations: 113 kB / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.3483, allocations: 5.531 kB / 0.5374 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.3484, allocations: 55.22 kB / 0.5374 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.3487, allocations: 17.31 kB / 0.5374 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000424/0.3491, allocations: 205.5 kB / 0.5376 GB, free: 7.992 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.3494, allocations: 0.6922 MB / 0.5383 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.467e-05/0.3494, allocations: 15.53 kB / 0.5383 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.733e-05/0.3495, allocations: 14.47 kB / 0.5383 GB, free: 7.273 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3495, allocations: 0 / 0.5383 GB, free: 7.273 MB / 398.1 MB Notification: Performance of Templates: time 0.003409/0.3529, allocations: 1.044 MB / 0.5394 GB, free: 6.746 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/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