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.001456/0.001455, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001677/0.001677, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, 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.2271/0.2271, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 71.89 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.4053, allocations: 62.42 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002955/0.4083, allocations: 1.554 MB / 0.5325 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.4095, allocations: 0.5603 MB / 0.533 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.562e-05/0.4096, allocations: 3.938 kB / 0.533 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.025e-05/0.4096, allocations: 5.312 kB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.4098, allocations: 17.22 kB / 0.5331 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.4101, allocations: 56.06 kB / 0.5331 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.4104, allocations: 84.89 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.4106, allocations: 10.88 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.4108, allocations: 49.7 kB / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.4109, allocations: 44.2 kB / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.411, allocations: 6.875 kB / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.895e-05/0.411, allocations: 13.62 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.463e-05/0.4111, allocations: 27.97 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.625e-05/0.4112, allocations: 37.42 kB / 0.5334 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.4114, allocations: 77.77 kB / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.4114, allocations: 0 / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.107e-05/0.4114, allocations: 0 / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.4115, allocations: 0 / 0.5334 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.0009637/0.4124, allocations: 410.6 kB / 0.5338 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.4125, allocations: 9.375 kB / 0.5338 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.4127, allocations: 20.05 kB / 0.5339 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.4131, allocations: 187.7 kB / 0.534 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.4131, allocations: 12 kB / 0.5341 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.252e-05/0.4131, allocations: 9.906 kB / 0.5341 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.4134, allocations: 94.08 kB / 0.5342 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.4134, allocations: 0 / 0.5342 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.4135, allocations: 4.922 kB / 0.5342 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.4135, allocations: 1.562 kB / 0.5342 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.4136, allocations: 48.5 kB / 0.5342 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006964/0.4143, allocations: 333.2 kB / 0.5345 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.4146, allocations: 101.8 kB / 0.5346 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.4148, allocations: 51.52 kB / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.4148, allocations: 1.375 kB / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.415, allocations: 96.17 kB / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 5.019e-06/0.415, allocations: 4 kB / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006424/0.4157, allocations: 200.7 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.48e-05/0.4158, allocations: 54.94 kB / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.4159, allocations: 115.8 kB / 0.5351 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.756e-05/0.416, allocations: 36.91 kB / 0.5352 GB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.512e-05/0.416, allocations: 95.08 kB / 0.5353 GB, free: 10 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.828e-05/0.4161, allocations: 36.62 kB / 0.5353 GB, free: 9.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.1e-05/0.4162, allocations: 39.61 kB / 0.5353 GB, free: 9.941 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.4164, allocations: 332 kB / 0.5356 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.4165, allocations: 33.92 kB / 0.5357 GB, free: 9.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.4166, allocations: 74.17 kB / 0.5357 GB, free: 9.539 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.4168, allocations: 123.1 kB / 0.5359 GB, free: 9.453 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4168, allocations: 0 / 0.5359 GB, free: 9.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003043/0.4171, allocations: 162.5 kB / 0.536 GB, free: 9.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.4172, allocations: 5.406 kB / 0.536 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.4172, allocations: 9.438 kB / 0.536 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.4172, allocations: 2.75 kB / 0.536 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.4173, allocations: 23.73 kB / 0.5361 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.4174, allocations: 6.562 kB / 0.5361 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.174e-05/0.4174, allocations: 15.83 kB / 0.5361 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.4174, allocations: 4.625 kB / 0.5361 GB, free: 9.332 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.0001102/0.4176, allocations: 129.4 kB / 0.5362 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.4176, allocations: 7.812 kB / 0.5362 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.744e-05/0.4176, allocations: 17.89 kB / 0.5362 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.4176, allocations: 2.75 kB / 0.5362 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.4176, allocations: 3.938 kB / 0.5362 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4177, allocations: 0 / 0.5362 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006027/0.4183, allocations: 444.1 kB / 0.5367 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.4183, allocations: 4 kB / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.155e-05/0.4183, allocations: 14.47 kB / 0.5367 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.4183, allocations: 1.031 kB / 0.5367 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.4184, allocations: 9.078 kB / 0.5367 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.4184, allocations: 1.094 kB / 0.5367 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.4184, allocations: 0 / 0.5367 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003808/0.4188, allocations: 258.9 kB / 0.5369 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.053e-05/0.4188, allocations: 88.17 kB / 0.537 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.435e-05/0.4189, allocations: 5.234 kB / 0.537 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.419, allocations: 13.25 kB / 0.537 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.545e-05/0.419, allocations: 12.48 kB / 0.537 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.4191, allocations: 8.859 kB / 0.5371 GB, free: 8.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.514e-05/0.4191, allocations: 88.22 kB / 0.5371 GB, free: 8.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4191, allocations: 3.938 kB / 0.5371 GB, free: 8.375 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.4194, allocations: 26.27 kB / 0.5372 GB, free: 8.367 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.0001708/0.4196, allocations: 101.6 kB / 0.5373 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003298/0.4199, allocations: 114.4 kB / 0.5374 GB, free: 8.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.219e-05/0.4199, allocations: 0 / 0.5374 GB, free: 8.227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.4201, allocations: 60.31 kB / 0.5374 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.4204, allocations: 14.08 kB / 0.5374 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.421, allocations: 196.5 kB / 0.5376 GB, free: 8.027 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.4213, allocations: 0.6963 MB / 0.5383 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.016e-05/0.4214, allocations: 11.72 kB / 0.5383 GB, free: 7.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.4214, allocations: 13.62 kB / 0.5383 GB, free: 7.309 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4214, allocations: 0 / 0.5383 GB, free: 7.309 MB / 398.1 MB Notification: Performance of Templates: time 0.003797/0.4252, allocations: 1.088 MB / 0.5394 GB, free: 6.75 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