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.001445/0.001445, allocations: 116.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001724/0.001724, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 247.6 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.2078/0.2078, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 75.88 kB / 482 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3457, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002645/0.3484, allocations: 1.542 MB / 0.5332 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3494, allocations: 0.5694 MB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.081e-05/0.3495, allocations: 0 / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.152e-05/0.3495, allocations: 7.922 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.742e-05/0.3496, allocations: 14.22 kB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.3498, allocations: 48.75 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.35, allocations: 95.66 kB / 0.5339 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.3501, allocations: 15.36 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.3503, allocations: 37.67 kB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.3504, allocations: 52.06 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.3504, allocations: 6.562 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.063e-05/0.3505, allocations: 10.16 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.778e-05/0.3505, allocations: 19.3 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.336e-05/0.3505, allocations: 46.48 kB / 0.5341 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.3507, allocations: 80.27 kB / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3507, allocations: 1.531 kB / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3507, allocations: 0 / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.3507, allocations: 0 / 0.5341 GB, free: 11.66 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.0007059/0.3514, allocations: 410.9 kB / 0.5345 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3515, allocations: 8.438 kB / 0.5345 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.3516, allocations: 18.64 kB / 0.5345 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.3519, allocations: 189.6 kB / 0.5347 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.3519, allocations: 4 kB / 0.5347 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.299e-05/0.3519, allocations: 9.406 kB / 0.5347 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.3521, allocations: 103.8 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.3521, allocations: 1.969 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.3522, allocations: 0 / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3522, allocations: 1.625 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.3523, allocations: 49.09 kB / 0.5349 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005073/0.3528, allocations: 333.8 kB / 0.5352 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.353, allocations: 93.84 kB / 0.5353 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.558e-05/0.3531, allocations: 46.84 kB / 0.5353 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.3532, allocations: 1.375 kB / 0.5353 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001739/0.3533, allocations: 108.2 kB / 0.5354 GB, free: 10.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.3534, allocations: 0 / 0.5354 GB, free: 10.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004356/0.3538, allocations: 192.7 kB / 0.5356 GB, free: 10.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.3538, allocations: 59.53 kB / 0.5357 GB, free: 10.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.226e-05/0.3539, allocations: 123.5 kB / 0.5358 GB, free: 10.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.354, allocations: 32.45 kB / 0.5358 GB, free: 10.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.116e-05/0.354, allocations: 95.02 kB / 0.5359 GB, free: 9.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.699e-05/0.3541, allocations: 41.03 kB / 0.536 GB, free: 9.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.047e-05/0.3541, allocations: 38.08 kB / 0.536 GB, free: 9.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3542, allocations: 329.5 kB / 0.5363 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.005e-05/0.3543, allocations: 33.98 kB / 0.5363 GB, free: 9.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.3545, allocations: 78.33 kB / 0.5364 GB, free: 9.523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.3547, allocations: 123.4 kB / 0.5365 GB, free: 9.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3547, allocations: 0 / 0.5365 GB, free: 9.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002684/0.3549, allocations: 164 kB / 0.5367 GB, free: 9.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.355, allocations: 5.625 kB / 0.5367 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.355, allocations: 5.344 kB / 0.5367 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.355, allocations: 6.219 kB / 0.5367 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.3551, allocations: 23.58 kB / 0.5367 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3551, allocations: 6.656 kB / 0.5367 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.316e-05/0.3552, allocations: 12.47 kB / 0.5368 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.3552, allocations: 5.031 kB / 0.5368 GB, free: 9.32 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.0001006/0.3553, allocations: 132.1 kB / 0.5369 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.951e-05/0.3554, allocations: 9.188 kB / 0.5369 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.818e-05/0.3554, allocations: 13.55 kB / 0.5369 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3554, allocations: 4 kB / 0.5369 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3554, allocations: 1.094 kB / 0.5369 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.3555, allocations: 90.98 kB / 0.537 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.3555, allocations: 6.609 kB / 0.537 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.434e-05/0.3556, allocations: 13.14 kB / 0.537 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.3556, allocations: 3.812 kB / 0.537 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003328/0.356, allocations: 233.9 kB / 0.5372 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003323/0.3563, allocations: 336.1 kB / 0.5376 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001028/0.3564, allocations: 46.03 kB / 0.5376 GB, free: 8.605 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.664e-05/0.3565, allocations: 92.3 kB / 0.5377 GB, free: 8.523 MB / 398.1 MB Notification: Performance of Backend: time 2.8e-07/0.3565, allocations: 0 / 0.5377 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000455/0.3569, allocations: 151.6 kB / 0.5378 GB, free: 8.426 MB / 398.1 MB Notification: Performance of SimCode: time 0.0005073/0.3574, allocations: 0.6263 MB / 0.5385 GB, free: 7.797 MB / 398.1 MB Notification: Performance of Templates: time 0.003749/0.3612, allocations: 1.215 MB / 0.5396 GB, free: 7.176 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