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.001585/0.001585, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002086/0.002086, allocations: 204.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.655/1.655, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2838/0.2838, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001515, allocations: 76.06 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4812/0.4827, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003156/0.4859, allocations: 1.544 MB / 0.5325 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.4872, allocations: 0.5592 MB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.44e-05/0.4873, allocations: 5.219 kB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.889e-05/0.4873, allocations: 7.922 kB / 0.533 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.4874, allocations: 10.06 kB / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002818/0.4877, allocations: 52.88 kB / 0.5331 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.488, allocations: 91.94 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.4881, allocations: 19.27 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.4883, allocations: 41.94 kB / 0.5333 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.526e-05/0.4884, allocations: 44.36 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.4884, allocations: 6.75 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.713e-05/0.4885, allocations: 13.56 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.4885, allocations: 23.98 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.728e-05/0.4886, allocations: 41.41 kB / 0.5334 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001866/0.4888, allocations: 84.89 kB / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.4888, allocations: 1.375 kB / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4888, allocations: 4 kB / 0.5335 GB, free: 11.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.4888, allocations: 0 / 0.5335 GB, free: 11.65 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.0006999/0.4895, allocations: 408.3 kB / 0.5339 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.4896, allocations: 9.625 kB / 0.5339 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.4897, allocations: 15.89 kB / 0.5339 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.49, allocations: 196.4 kB / 0.5341 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.49, allocations: 7.062 kB / 0.5341 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.4901, allocations: 13.86 kB / 0.5341 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.4903, allocations: 93.39 kB / 0.5342 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.4903, allocations: 1.375 kB / 0.5342 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.4903, allocations: 0 / 0.5342 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.4903, allocations: 2.75 kB / 0.5342 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.4905, allocations: 52.09 kB / 0.5342 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005558/0.4911, allocations: 337.8 kB / 0.5345 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.4913, allocations: 97.08 kB / 0.5346 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.4914, allocations: 46.84 kB / 0.5347 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.4914, allocations: 2.75 kB / 0.5347 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.4917, allocations: 102.8 kB / 0.5348 GB, free: 10.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.4917, allocations: 0 / 0.5348 GB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004912/0.4922, allocations: 193.4 kB / 0.535 GB, free: 10.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.4922, allocations: 59.03 kB / 0.535 GB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.4923, allocations: 120.6 kB / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.4924, allocations: 32.05 kB / 0.5352 GB, free: 10.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.386e-05/0.4924, allocations: 95.53 kB / 0.5353 GB, free: 9.984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.666e-05/0.4925, allocations: 41.03 kB / 0.5353 GB, free: 9.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/0.4926, allocations: 37.48 kB / 0.5353 GB, free: 9.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.4928, allocations: 325.3 kB / 0.5356 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.4929, allocations: 37.33 kB / 0.5357 GB, free: 9.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.4931, allocations: 75.5 kB / 0.5358 GB, free: 9.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.4933, allocations: 118.9 kB / 0.5359 GB, free: 9.434 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4933, allocations: 0 / 0.5359 GB, free: 9.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003075/0.4936, allocations: 167.3 kB / 0.536 GB, free: 9.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.4936, allocations: 5.438 kB / 0.536 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4936, allocations: 1.125 kB / 0.536 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.4937, allocations: 6.156 kB / 0.536 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.4938, allocations: 23.73 kB / 0.5361 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.4938, allocations: 6.25 kB / 0.5361 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.494e-05/0.4939, allocations: 16.39 kB / 0.5361 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.4939, allocations: 5.719 kB / 0.5361 GB, free: 9.312 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.0001174/0.494, allocations: 136 kB / 0.5362 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.058e-05/0.4941, allocations: 8.734 kB / 0.5362 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.4941, allocations: 9.656 kB / 0.5362 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.4941, allocations: 1.344 kB / 0.5362 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4941, allocations: 5.219 kB / 0.5362 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.4941, allocations: 0 / 0.5362 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007206/0.4948, allocations: 448.2 kB / 0.5367 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4949, allocations: 0 / 0.5367 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.662e-05/0.4949, allocations: 26.17 kB / 0.5367 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.4949, allocations: 1.156 kB / 0.5367 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.495, allocations: 5.406 kB / 0.5367 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.495, allocations: 1.219 kB / 0.5367 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.495, allocations: 0 / 0.5367 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003707/0.4953, allocations: 258.5 kB / 0.537 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.4954, allocations: 87.56 kB / 0.537 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.4954, allocations: 10.59 kB / 0.537 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.4955, allocations: 8.953 kB / 0.5371 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.4956, allocations: 8.109 kB / 0.5371 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.4956, allocations: 7.938 kB / 0.5371 GB, free: 8.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.607e-05/0.4957, allocations: 92.45 kB / 0.5372 GB, free: 8.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4957, allocations: 3.938 kB / 0.5372 GB, free: 8.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000244/0.4959, allocations: 22.69 kB / 0.5372 GB, free: 8.344 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.0001313/0.4961, allocations: 102.5 kB / 0.5373 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002782/0.4964, allocations: 110.1 kB / 0.5374 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4964, allocations: 0 / 0.5374 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.4965, allocations: 52.36 kB / 0.5374 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.4968, allocations: 17.02 kB / 0.5375 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004814/0.4973, allocations: 212.2 kB / 0.5377 GB, free: 7.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.4976, allocations: 0.6957 MB / 0.5383 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.368e-05/0.4977, allocations: 8.547 kB / 0.5383 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.079e-05/0.4977, allocations: 16.73 kB / 0.5384 GB, free: 7.277 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4977, allocations: 1.094 kB / 0.5384 GB, free: 7.277 MB / 398.1 MB Notification: Performance of Templates: time 0.003895/0.5016, allocations: 1.047 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