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.001682/0.001682, allocations: 113 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002363/0.002363, allocations: 212.9 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.486/1.486, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2609/0.2609, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3837, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002974/0.3867, allocations: 1.546 MB / 0.5332 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3878, allocations: 0.5601 MB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.74e-05/0.3879, allocations: 3.938 kB / 0.5337 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.877e-05/0.3879, allocations: 4.875 kB / 0.5337 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001014/0.3881, allocations: 21 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.3883, allocations: 53.62 kB / 0.5338 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00017/0.3885, allocations: 88.03 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.3886, allocations: 14.42 kB / 0.5339 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.3888, allocations: 46.09 kB / 0.5339 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.468e-05/0.3889, allocations: 44.48 kB / 0.534 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.3889, allocations: 10.56 kB / 0.534 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.843e-05/0.389, allocations: 9.938 kB / 0.534 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.69e-05/0.389, allocations: 27.28 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.875e-05/0.3891, allocations: 38.2 kB / 0.534 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.3893, allocations: 81.19 kB / 0.5341 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3893, allocations: 0 / 0.5341 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3893, allocations: 0 / 0.5341 GB, free: 11.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3893, allocations: 1.344 kB / 0.5341 GB, free: 11.67 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.0006924/0.39, allocations: 409.9 kB / 0.5345 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3901, allocations: 10.19 kB / 0.5345 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.3902, allocations: 19.2 kB / 0.5345 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.3905, allocations: 188.7 kB / 0.5347 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.3905, allocations: 7.781 kB / 0.5347 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.3905, allocations: 5.469 kB / 0.5347 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.3908, allocations: 97.42 kB / 0.5348 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3908, allocations: 3.984 kB / 0.5348 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.3908, allocations: 4 kB / 0.5348 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.3908, allocations: 6.031 kB / 0.5348 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001429/0.391, allocations: 44.94 kB / 0.5349 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.3915, allocations: 332.8 kB / 0.5352 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.3918, allocations: 95.11 kB / 0.5353 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3919, allocations: 50.83 kB / 0.5353 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.3919, allocations: 1.375 kB / 0.5353 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.3921, allocations: 96.23 kB / 0.5354 GB, free: 10.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.3921, allocations: 0 / 0.5354 GB, free: 10.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004877/0.3926, allocations: 196.6 kB / 0.5356 GB, free: 10.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.3927, allocations: 67.52 kB / 0.5357 GB, free: 10.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.995e-05/0.3928, allocations: 119.5 kB / 0.5358 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.3928, allocations: 32.45 kB / 0.5358 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.3929, allocations: 95.06 kB / 0.5359 GB, free: 10.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.3929, allocations: 37.05 kB / 0.536 GB, free: 9.977 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.393, allocations: 34.09 kB / 0.536 GB, free: 9.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3931, allocations: 325.5 kB / 0.5363 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.3932, allocations: 37.97 kB / 0.5363 GB, free: 9.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.3933, allocations: 81.95 kB / 0.5364 GB, free: 9.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.3936, allocations: 126.1 kB / 0.5365 GB, free: 9.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3936, allocations: 5.156 kB / 0.5365 GB, free: 9.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003039/0.3939, allocations: 159.5 kB / 0.5367 GB, free: 9.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3939, allocations: 6.344 kB / 0.5367 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.3939, allocations: 1.312 kB / 0.5367 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.394, allocations: 5.344 kB / 0.5367 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.3941, allocations: 28.58 kB / 0.5367 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.3941, allocations: 10.47 kB / 0.5367 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.408e-05/0.3942, allocations: 12.17 kB / 0.5368 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3942, allocations: 12.41 kB / 0.5368 GB, free: 9.324 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.0001078/0.3943, allocations: 124.1 kB / 0.5369 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.3943, allocations: 13.25 kB / 0.5369 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.3944, allocations: 9.625 kB / 0.5369 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3944, allocations: 2.438 kB / 0.5369 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.3944, allocations: 7.922 kB / 0.5369 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3944, allocations: 0 / 0.5369 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005842/0.395, allocations: 439.8 kB / 0.5373 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.395, allocations: 1.062 kB / 0.5373 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-05/0.3951, allocations: 13.61 kB / 0.5373 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3951, allocations: 0.9375 kB / 0.5373 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.3951, allocations: 5.312 kB / 0.5374 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3951, allocations: 1.094 kB / 0.5374 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3951, allocations: 5.047 kB / 0.5374 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003504/0.3955, allocations: 258.2 kB / 0.5376 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.681e-05/0.3955, allocations: 88.2 kB / 0.5377 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.3956, allocations: 2.312 kB / 0.5377 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.3957, allocations: 13.67 kB / 0.5377 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.871e-05/0.3957, allocations: 7.422 kB / 0.5377 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.3958, allocations: 4.5 kB / 0.5377 GB, free: 8.469 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.086e-05/0.3958, allocations: 95.8 kB / 0.5378 GB, free: 8.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3958, allocations: 5.281 kB / 0.5378 GB, free: 8.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.3961, allocations: 21.97 kB / 0.5378 GB, free: 8.375 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.00013/0.3962, allocations: 101.6 kB / 0.5379 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002998/0.3966, allocations: 113.7 kB / 0.538 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3966, allocations: 0 / 0.538 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3967, allocations: 61.3 kB / 0.5381 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.397, allocations: 19.19 kB / 0.5381 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004828/0.3975, allocations: 228.2 kB / 0.5383 GB, free: 8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.3978, allocations: 0.6963 MB / 0.539 GB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.441e-05/0.3978, allocations: 17.84 kB / 0.539 GB, free: 7.281 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3978, allocations: 0 / 0.539 GB, free: 7.281 MB / 398.1 MB Notification: Performance of Templates: time 0.003208/0.4011, allocations: 1.286 MB / 0.5403 GB, free: 6.605 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