Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00086/0.00086, allocations: 181.3 kB / 17.41 MB, free: 4.41 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.21/1.21, allocations: 205.4 MB / 223.6 MB, free: 8.945 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.0007339/0.000734, allocations: 93.39 kB / 271.9 MB, free: 8.254 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.3013/0.3013, allocations: 43.57 MB / 363.8 MB, free: 51.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004984/0.0004986, allocations: 12 kB / 432.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.123, allocations: 58.85 MB / 491.4 MB, free: 10.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3148/0.4379, allocations: 94.49 MB / 0.5722 GB, free: 7.789 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.4382, allocations: 71.97 kB / 0.5723 GB, free: 7.719 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03843/0.4766, allocations: 14.42 MB / 0.5863 GB, free: 9.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4767, allocations: 224 / 0.5863 GB, free: 9.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001125/0.4768, allocations: 24 kB / 0.5864 GB, free: 9.305 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.002269/0.4791, allocations: 0.9721 MB / 0.5873 GB, free: 8.281 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.4791, allocations: 8.031 kB / 0.5873 GB, free: 8.273 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.4794, allocations: 91.91 kB / 0.5874 GB, free: 8.184 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000837/0.4802, allocations: 0.5395 MB / 0.5879 GB, free: 7.605 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.011e-05/0.4803, allocations: 45.69 kB / 0.588 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.783e-05/0.4804, allocations: 64.28 kB / 0.588 GB, free: 7.496 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009464/0.4813, allocations: 0.616 MB / 0.5886 GB, free: 6.824 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.4813, allocations: 8.172 kB / 0.5887 GB, free: 6.816 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.4814, allocations: 23.94 kB / 0.5887 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.4814, allocations: 16 kB / 0.5887 GB, free: 6.777 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007709/0.4822, allocations: 405.3 kB / 0.5891 GB, free: 6.387 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003882/0.4861, allocations: 3.023 MB / 0.592 GB, free: 3.227 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.4872, allocations: 473.7 kB / 0.5925 GB, free: 2.742 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003688/0.4875, allocations: 185.7 kB / 0.5927 GB, free: 2.555 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.4876, allocations: 4 kB / 0.5927 GB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.4876, allocations: 51.62 kB / 0.5927 GB, free: 2.492 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 3.055e-06/0.4877, allocations: 0 / 0.5927 GB, free: 2.492 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.001338/0.489, allocations: 0.5753 MB / 0.5933 GB, free: 1.906 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.4891, allocations: 106.8 kB / 0.5934 GB, free: 1.777 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006175/0.4897, allocations: 0.5509 MB / 0.5939 GB, free: 1.219 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.4898, allocations: 33.7 kB / 0.5939 GB, free: 1.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.49, allocations: 372 kB / 0.5943 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.4902, allocations: 157.7 kB / 0.5944 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.4902, allocations: 19.94 kB / 0.5945 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.4904, allocations: 382.7 kB / 0.5948 GB, free: 260 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003864/0.4908, allocations: 181.2 kB / 0.595 GB, free: 80 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000545/0.4913, allocations: 408.9 kB / 0.5954 GB, free: 15.58 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009027/0.4923, allocations: 0.5872 MB / 0.596 GB, free: 14.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4923, allocations: 4 kB / 0.596 GB, free: 14.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001155/0.4934, allocations: 0.6685 MB / 0.5966 GB, free: 14.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.4936, allocations: 286.2 kB / 0.5969 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.4936, allocations: 4 kB / 0.5969 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.385e-05/0.4937, allocations: 15.94 kB / 0.5969 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005301/0.4942, allocations: 151.8 kB / 0.5971 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.4942, allocations: 11.98 kB / 0.5971 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004015/0.4946, allocations: 67.52 kB / 0.5971 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.4947, allocations: 28 kB / 0.5972 GB, free: 13.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-06/0.4947, allocations: 8 kB / 0.5972 GB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009415/0.4957, allocations: 0.5472 MB / 0.5977 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4957, allocations: 8 kB / 0.5977 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.4957, allocations: 12 kB / 0.5977 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.4962, allocations: 135.8 kB / 0.5979 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.4962, allocations: 19.92 kB / 0.5979 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003526/0.4965, allocations: 67.61 kB / 0.5979 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.4966, allocations: 28 kB / 0.598 GB, free: 12.75 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.0003601/0.497, allocations: 273.2 kB / 0.5982 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.4971, allocations: 67.16 kB / 0.5983 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001326/0.4972, allocations: 70.16 kB / 0.5984 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.4972, allocations: 4 kB / 0.5984 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4972, allocations: 0 / 0.5984 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.4972, allocations: 4 kB / 0.5984 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007724/0.498, allocations: 0.579 MB / 0.5989 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.498, allocations: 4 kB / 0.5989 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.4985, allocations: 91.89 kB / 0.599 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.4986, allocations: 3.938 kB / 0.599 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.4986, allocations: 11.98 kB / 0.599 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.4986, allocations: 7.922 kB / 0.599 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.4986, allocations: 4 kB / 0.599 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.4999, allocations: 0.8277 MB / 0.5999 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.5001, allocations: 172.3 kB / 0.6 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.694e-05/0.5001, allocations: 12 kB / 0.6 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000341/0.5005, allocations: 31.97 kB / 0.6001 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.595e-05/0.5006, allocations: 31.95 kB / 0.6001 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.5006, allocations: 12 kB / 0.6001 GB, free: 10.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003954/0.501, allocations: 379.1 kB / 0.6005 GB, free: 10.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.501, allocations: 3.938 kB / 0.6005 GB, free: 10.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007708/0.5018, allocations: 251.2 kB / 0.6007 GB, free: 9.848 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.0001617/0.502, allocations: 111 kB / 0.6008 GB, free: 9.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.5034, allocations: 0.7492 MB / 0.6015 GB, free: 8.984 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5034, allocations: 3.938 kB / 0.6016 GB, free: 8.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003807/0.5038, allocations: 204.2 kB / 0.6017 GB, free: 8.781 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009478/0.5048, allocations: 151.4 kB / 0.6019 GB, free: 8.637 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.507, allocations: 1.718 MB / 0.6036 GB, free: 6.887 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.5075, allocations: 0.9152 MB / 0.6045 GB, free: 5.945 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.5076, allocations: 43.44 kB / 0.6045 GB, free: 5.902 MB / 426.7 MB Notification: Performance of SimCode: time 1.814e-06/0.5076, allocations: 0 / 0.6045 GB, free: 5.902 MB / 426.7 MB Notification: Performance of Templates: time 0.009905/0.5175, allocations: 7.718 MB / 0.612 GB, free: 14.21 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches