Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000938/0.0009382, allocations: 170.9 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008231/0.0008232, allocations: 97.52 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3968/0.3968, allocations: 43.56 MB / 363.1 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003702, allocations: 16 kB / 432.6 MB, free: 4.988 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1297, allocations: 58.84 MB / 491.5 MB, free: 10.06 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4013/0.5311, allocations: 94.5 MB / 0.5722 GB, free: 7.344 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5315, allocations: 71.97 kB / 0.5723 GB, free: 7.273 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03934/0.5708, allocations: 14.41 MB / 0.5864 GB, free: 8.895 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5709, allocations: 0 / 0.5864 GB, free: 8.895 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.866e-05/0.571, allocations: 28.58 kB / 0.5864 GB, free: 8.867 MB / 410.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.002181/0.5732, allocations: 0.9658 MB / 0.5873 GB, free: 7.852 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.5732, allocations: 8.031 kB / 0.5873 GB, free: 7.844 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003021/0.5735, allocations: 91.91 kB / 0.5874 GB, free: 7.754 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.5746, allocations: 0.5434 MB / 0.588 GB, free: 7.172 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.995e-05/0.5747, allocations: 45.69 kB / 0.588 GB, free: 7.125 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.5748, allocations: 64.28 kB / 0.5881 GB, free: 7.062 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.5759, allocations: 0.616 MB / 0.5887 GB, free: 6.391 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.5759, allocations: 4.188 kB / 0.5887 GB, free: 6.387 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.626e-05/0.576, allocations: 27.94 kB / 0.5887 GB, free: 6.359 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.576, allocations: 19.94 kB / 0.5887 GB, free: 6.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008073/0.5768, allocations: 405.4 kB / 0.5891 GB, free: 5.949 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004073/0.5809, allocations: 3.015 MB / 0.592 GB, free: 2.797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009178/0.5818, allocations: 473.7 kB / 0.5925 GB, free: 2.312 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.5822, allocations: 189.6 kB / 0.5927 GB, free: 2.121 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.463e-05/0.5823, allocations: 12.03 kB / 0.5927 GB, free: 2.109 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.5823, allocations: 35.59 kB / 0.5927 GB, free: 2.066 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 1.943e-06/0.5823, allocations: 0 / 0.5927 GB, free: 2.066 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.001295/0.5836, allocations: 0.5792 MB / 0.5933 GB, free: 1.477 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.5837, allocations: 110.8 kB / 0.5934 GB, free: 1.344 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005882/0.5843, allocations: 0.547 MB / 0.5939 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.5844, allocations: 33.7 kB / 0.594 GB, free: 0.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/0.5846, allocations: 372 kB / 0.5943 GB, free: 392 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.5848, allocations: 154.8 kB / 0.5945 GB, free: 236 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-05/0.5848, allocations: 12 kB / 0.5945 GB, free: 224 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.585, allocations: 390.6 kB / 0.5948 GB, free: 15.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.5854, allocations: 185.2 kB / 0.595 GB, free: 15.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005132/0.5859, allocations: 404.8 kB / 0.5954 GB, free: 15.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008963/0.5868, allocations: 0.5989 MB / 0.596 GB, free: 14.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5868, allocations: 0 / 0.596 GB, free: 14.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001159/0.588, allocations: 0.6644 MB / 0.5966 GB, free: 13.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.5882, allocations: 286.4 kB / 0.5969 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.5882, allocations: 12 kB / 0.5969 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.707e-05/0.5883, allocations: 11.94 kB / 0.5969 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.5888, allocations: 147.7 kB / 0.5971 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.5888, allocations: 15.92 kB / 0.5971 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.5892, allocations: 75.52 kB / 0.5972 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.115e-05/0.5893, allocations: 28 kB / 0.5972 GB, free: 13.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.5893, allocations: 4 kB / 0.5972 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009239/0.5902, allocations: 0.5464 MB / 0.5977 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5902, allocations: 4 kB / 0.5977 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.5902, allocations: 12 kB / 0.5977 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004555/0.5907, allocations: 135.8 kB / 0.5979 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.5907, allocations: 20.36 kB / 0.5979 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.5911, allocations: 63.52 kB / 0.598 GB, free: 12.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/0.5911, allocations: 32 kB / 0.598 GB, free: 12.32 MB / 426.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.0003089/0.5915, allocations: 273.2 kB / 0.5983 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.5916, allocations: 67.16 kB / 0.5983 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001247/0.5917, allocations: 66.17 kB / 0.5984 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.5917, allocations: 4 kB / 0.5984 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.5917, allocations: 4 kB / 0.5984 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.5917, allocations: 7.984 kB / 0.5984 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007646/0.5925, allocations: 0.579 MB / 0.599 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5925, allocations: 7.938 kB / 0.599 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004589/0.593, allocations: 87.89 kB / 0.599 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.593, allocations: 0 / 0.599 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.593, allocations: 12 kB / 0.5991 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5931, allocations: 3.984 kB / 0.5991 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5931, allocations: 8 kB / 0.5991 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.5944, allocations: 0.8199 MB / 0.5999 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.5946, allocations: 176.2 kB / 0.6 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/0.5947, allocations: 8 kB / 0.6 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.595, allocations: 39.97 kB / 0.6001 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.5951, allocations: 31.95 kB / 0.6001 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.5952, allocations: 8 kB / 0.6001 GB, free: 10.03 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004365/0.5956, allocations: 371.1 kB / 0.6005 GB, free: 9.676 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.033e-06/0.5956, allocations: 0 / 0.6005 GB, free: 9.676 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008193/0.5965, allocations: 259.1 kB / 0.6007 GB, free: 9.422 MB / 426.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.0001984/0.5967, allocations: 107 kB / 0.6008 GB, free: 9.309 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.5981, allocations: 0.7495 MB / 0.6016 GB, free: 8.562 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5981, allocations: 0 / 0.6016 GB, free: 8.562 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003991/0.5985, allocations: 204.5 kB / 0.6018 GB, free: 8.363 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.5996, allocations: 169.2 kB / 0.6019 GB, free: 8.203 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.6019, allocations: 1.689 MB / 0.6036 GB, free: 6.488 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.6024, allocations: 0.9074 MB / 0.6045 GB, free: 5.555 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003843/0.6028, allocations: 76.8 kB / 0.6045 GB, free: 5.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.6029, allocations: 39.44 kB / 0.6046 GB, free: 5.441 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.6029, allocations: 0 / 0.6046 GB, free: 5.441 MB / 426.7 MB Notification: Performance of Templates: time 0.01112/0.614, allocations: 5.958 MB / 0.6104 GB, free: 15.55 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches