Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009369/0.0009371, allocations: 177 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 223.2 MB / 241 MB, free: 10.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009617/0.0009619, allocations: 95.09 kB / 292.2 MB, free: 10.69 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3379/0.3379, allocations: 44.2 MB / 387.5 MB, free: 38.53 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003029, allocations: 12 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3078, allocations: 61.89 MB / 0.5095 GB, free: 37.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.4347, allocations: 95.71 MB / 0.603 GB, free: 15.41 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.435, allocations: 71.97 kB / 0.6031 GB, free: 15.34 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03781/0.4728, allocations: 14.44 MB / 0.6172 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4728, allocations: 4 kB / 0.6172 GB, free: 0.875 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.095e-05/0.4729, allocations: 16 kB / 0.6172 GB, free: 0.8594 MB / 426.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.001656/0.4746, allocations: 0.9734 MB / 0.6182 GB, free: 15.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4746, allocations: 8.031 kB / 0.6182 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.4748, allocations: 90.97 kB / 0.6182 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008786/0.4756, allocations: 0.5156 MB / 0.6188 GB, free: 15.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.4757, allocations: 45.31 kB / 0.6188 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.4758, allocations: 56 kB / 0.6188 GB, free: 15.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009362/0.4767, allocations: 0.6154 MB / 0.6194 GB, free: 14.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.4768, allocations: 7.906 kB / 0.6195 GB, free: 14.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.018e-05/0.4768, allocations: 20 kB / 0.6195 GB, free: 14.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.4768, allocations: 16 kB / 0.6195 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007214/0.4776, allocations: 411.7 kB / 0.6199 GB, free: 13.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.4813, allocations: 3.023 MB / 0.6228 GB, free: 10.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009415/0.4823, allocations: 471.9 kB / 0.6233 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.4823, allocations: 4 kB / 0.6233 GB, free: 10.31 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.4824, allocations: 42.5 kB / 0.6233 GB, free: 10.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 2.896e-06/0.4824, allocations: 0 / 0.6233 GB, free: 10.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001209/0.4836, allocations: 0.5798 MB / 0.6239 GB, free: 9.672 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.4837, allocations: 106.8 kB / 0.624 GB, free: 9.543 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004844/0.4842, allocations: 487.2 kB / 0.6245 GB, free: 9.059 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.4842, allocations: 37.7 kB / 0.6245 GB, free: 9.016 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.4844, allocations: 368.3 kB / 0.6248 GB, free: 8.648 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.4845, allocations: 153.8 kB / 0.625 GB, free: 8.496 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.424e-05/0.4846, allocations: 15.94 kB / 0.625 GB, free: 8.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4847, allocations: 378.8 kB / 0.6254 GB, free: 8.102 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.4851, allocations: 189.2 kB / 0.6256 GB, free: 7.914 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.4856, allocations: 401.8 kB / 0.6259 GB, free: 7.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.486, allocations: 232.7 kB / 0.6262 GB, free: 7.203 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.486, allocations: 4 kB / 0.6262 GB, free: 7.199 MB / 442.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001399/0.4874, allocations: 0.6607 MB / 0.6268 GB, free: 6.531 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001045/0.4885, allocations: 2.625 MB / 0.6294 GB, free: 3.703 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.4885, allocations: 8 kB / 0.6294 GB, free: 3.695 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.112e-05/0.4885, allocations: 15.98 kB / 0.6294 GB, free: 3.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007569/0.4893, allocations: 139.8 kB / 0.6295 GB, free: 3.543 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.4893, allocations: 19.92 kB / 0.6295 GB, free: 3.523 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.4899, allocations: 71.42 kB / 0.6296 GB, free: 3.453 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.49, allocations: 27.98 kB / 0.6296 GB, free: 3.426 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.487e-06/0.49, allocations: 4 kB / 0.6296 GB, free: 3.422 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001287/0.4913, allocations: 0.5547 MB / 0.6302 GB, free: 2.867 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.4913, allocations: 16.14 kB / 0.6302 GB, free: 2.852 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.4914, allocations: 12 kB / 0.6302 GB, free: 2.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006351/0.492, allocations: 135.8 kB / 0.6303 GB, free: 2.707 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.492, allocations: 12 kB / 0.6304 GB, free: 2.695 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/0.4926, allocations: 63.52 kB / 0.6304 GB, free: 2.633 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.4926, allocations: 28 kB / 0.6304 GB, free: 2.605 MB / 442.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.0004642/0.4931, allocations: 280.8 kB / 0.6307 GB, free: 2.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.4933, allocations: 67.23 kB / 0.6308 GB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.4934, allocations: 70.17 kB / 0.6308 GB, free: 2.184 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.4935, allocations: 4 kB / 0.6308 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4935, allocations: 0 / 0.6308 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.4935, allocations: 0 / 0.6308 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009924/0.4945, allocations: 0.5867 MB / 0.6314 GB, free: 1.543 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.4945, allocations: 8 kB / 0.6314 GB, free: 1.535 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006823/0.4952, allocations: 91.89 kB / 0.6315 GB, free: 1.445 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.4952, allocations: 4 kB / 0.6315 GB, free: 1.441 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/0.4953, allocations: 7.984 kB / 0.6315 GB, free: 1.434 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.4953, allocations: 7.984 kB / 0.6315 GB, free: 1.426 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4953, allocations: 0 / 0.6315 GB, free: 1.426 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.497, allocations: 0.8218 MB / 0.6323 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.4972, allocations: 176.3 kB / 0.6325 GB, free: 396 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.742e-05/0.4973, allocations: 12 kB / 0.6325 GB, free: 384 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004978/0.4978, allocations: 31.97 kB / 0.6325 GB, free: 352 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.498, allocations: 27.95 kB / 0.6326 GB, free: 324 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.498, allocations: 12 kB / 0.6326 GB, free: 312 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005561/0.4986, allocations: 375.1 kB / 0.6329 GB, free: 15.94 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4986, allocations: 4 kB / 0.6329 GB, free: 15.94 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001219/0.4998, allocations: 247.2 kB / 0.6332 GB, free: 15.7 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.0001857/0.5, allocations: 107.1 kB / 0.6333 GB, free: 15.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.5019, allocations: 0.7601 MB / 0.634 GB, free: 14.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.502, allocations: 0 / 0.634 GB, free: 14.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005294/0.5025, allocations: 201.2 kB / 0.6342 GB, free: 14.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.5036, allocations: 154.4 kB / 0.6344 GB, free: 14.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.5066, allocations: 1.686 MB / 0.636 GB, free: 12.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.5072, allocations: 0.9269 MB / 0.6369 GB, free: 11.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005706/0.5078, allocations: 72.81 kB / 0.637 GB, free: 11.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.508, allocations: 43.42 kB / 0.637 GB, free: 11.69 MB / 458.7 MB Notification: Performance of SimCode: time 6.51e-07/0.508, allocations: 0 / 0.637 GB, free: 11.69 MB / 458.7 MB Notification: Performance of Templates: time 0.01297/0.521, allocations: 5.873 MB / 0.6428 GB, free: 5.887 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches