Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009531/0.0009531, allocations: 203 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.162/1.162, allocations: 227.2 MB / 245 MB, free: 7.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008191/0.0008191, allocations: 99.94 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2801/0.2801, allocations: 45.22 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002399, allocations: 4 kB / 468.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2608, allocations: 63.23 MB / 0.5192 GB, free: 43.73 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09817/0.359, allocations: 96.77 MB / 0.6137 GB, free: 8.879 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.3592, allocations: 69.22 kB / 0.6137 GB, free: 8.812 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03773/0.397, allocations: 14.56 MB / 0.628 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.397, allocations: 4 kB / 0.628 GB, free: 10.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.822e-05/0.3971, allocations: 19.94 kB / 0.628 GB, free: 10.22 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001689/0.3988, allocations: 0.985 MB / 0.6289 GB, free: 9.188 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.3988, allocations: 8.031 kB / 0.6289 GB, free: 9.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002761/0.3991, allocations: 102.9 kB / 0.629 GB, free: 9.078 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008388/0.3999, allocations: 0.5154 MB / 0.6295 GB, free: 8.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/0.4, allocations: 45.25 kB / 0.6296 GB, free: 8.477 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.958e-05/0.4001, allocations: 56 kB / 0.6296 GB, free: 8.422 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009149/0.401, allocations: 0.6154 MB / 0.6302 GB, free: 7.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.401, allocations: 3.938 kB / 0.6303 GB, free: 7.746 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.698e-05/0.4011, allocations: 24 kB / 0.6303 GB, free: 7.723 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.4011, allocations: 15.95 kB / 0.6303 GB, free: 7.707 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007458/0.4018, allocations: 403.8 kB / 0.6307 GB, free: 7.309 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003417/0.4053, allocations: 3.032 MB / 0.6336 GB, free: 4.141 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009119/0.4062, allocations: 469.8 kB / 0.6341 GB, free: 3.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.4062, allocations: 4 kB / 0.6341 GB, free: 3.656 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.4063, allocations: 42.52 kB / 0.6341 GB, free: 3.605 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 1.753e-06/0.4063, allocations: 4 kB / 0.6341 GB, free: 3.602 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001173/0.4075, allocations: 0.5812 MB / 0.6347 GB, free: 3.012 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.4075, allocations: 110.8 kB / 0.6348 GB, free: 2.879 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004842/0.408, allocations: 491.3 kB / 0.6353 GB, free: 2.391 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.4081, allocations: 37.7 kB / 0.6353 GB, free: 2.348 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.4083, allocations: 368 kB / 0.6357 GB, free: 1.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.4084, allocations: 153.8 kB / 0.6358 GB, free: 1.828 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.27e-05/0.4084, allocations: 8 kB / 0.6358 GB, free: 1.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4085, allocations: 374.8 kB / 0.6362 GB, free: 1.445 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.4089, allocations: 193.2 kB / 0.6364 GB, free: 1.254 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004767/0.4094, allocations: 397.6 kB / 0.6367 GB, free: 0.7734 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.4099, allocations: 249.5 kB / 0.637 GB, free: 0.5312 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.4099, allocations: 0 / 0.637 GB, free: 0.5312 MB / 442.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00111/0.411, allocations: 0.6685 MB / 0.6376 GB, free: 15.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007146/0.4117, allocations: 2.611 MB / 0.6402 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.4117, allocations: 8 kB / 0.6402 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.4118, allocations: 12 kB / 0.6402 GB, free: 13.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/0.4123, allocations: 143.7 kB / 0.6403 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.4123, allocations: 15.94 kB / 0.6403 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003992/0.4127, allocations: 83.41 kB / 0.6404 GB, free: 12.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.4128, allocations: 24 kB / 0.6405 GB, free: 12.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/0.4128, allocations: 4 kB / 0.6405 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000908/0.4137, allocations: 0.5499 MB / 0.641 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.4137, allocations: 8 kB / 0.641 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.4137, allocations: 15.94 kB / 0.641 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000463/0.4142, allocations: 136.4 kB / 0.6411 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.4142, allocations: 19.89 kB / 0.6412 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.4146, allocations: 71.44 kB / 0.6412 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.4146, allocations: 28 kB / 0.6413 GB, free: 11.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002381/0.4149, allocations: 272.9 kB / 0.6415 GB, free: 11.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.415, allocations: 63.25 kB / 0.6416 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.4151, allocations: 70.17 kB / 0.6416 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.4151, allocations: 11.98 kB / 0.6417 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4151, allocations: 7.953 kB / 0.6417 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4151, allocations: 3.984 kB / 0.6417 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006597/0.4158, allocations: 0.579 MB / 0.6422 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.4158, allocations: 0 / 0.6422 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004891/0.4163, allocations: 87.89 kB / 0.6423 GB, free: 10.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.4163, allocations: 4 kB / 0.6423 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.333e-05/0.4164, allocations: 12 kB / 0.6423 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.4164, allocations: 4 kB / 0.6423 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.4164, allocations: 3.984 kB / 0.6423 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.4176, allocations: 0.8255 MB / 0.6431 GB, free: 9.906 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.4178, allocations: 172.4 kB / 0.6433 GB, free: 9.719 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.486e-05/0.4178, allocations: 8 kB / 0.6433 GB, free: 9.711 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000367/0.4182, allocations: 35.97 kB / 0.6434 GB, free: 9.676 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.984e-05/0.4183, allocations: 35.91 kB / 0.6434 GB, free: 9.641 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.4183, allocations: 12 kB / 0.6434 GB, free: 9.629 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003657/0.4187, allocations: 375.1 kB / 0.6438 GB, free: 9.266 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4187, allocations: 0 / 0.6438 GB, free: 9.266 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000727/0.4194, allocations: 255.1 kB / 0.644 GB, free: 9.016 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001295/0.4196, allocations: 107.2 kB / 0.6441 GB, free: 8.898 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.4209, allocations: 0.7562 MB / 0.6448 GB, free: 8.145 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4209, allocations: 0 / 0.6448 GB, free: 8.145 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003616/0.4213, allocations: 200 kB / 0.645 GB, free: 7.949 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007058/0.422, allocations: 159.5 kB / 0.6452 GB, free: 7.801 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.424, allocations: 1.682 MB / 0.6468 GB, free: 6.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.4244, allocations: 0.9191 MB / 0.6477 GB, free: 5.145 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003488/0.4247, allocations: 84.83 kB / 0.6478 GB, free: 5.059 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.4249, allocations: 47.38 kB / 0.6478 GB, free: 5.012 MB / 458.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4249, allocations: 0 / 0.6478 GB, free: 5.012 MB / 458.7 MB Notification: Performance of Templates: time 0.01019/0.4351, allocations: 5.912 MB / 0.6536 GB, free: 15.16 MB / 474.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches