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.001073/0.001073, allocations: 183.7 kB / 13.19 MB, free: 2.129 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.394/1.394, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0009089/0.0009088, allocations: 82.62 kB / 267 MB, free: 9.285 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.3482/0.3482, allocations: 43.46 MB / 358.6 MB, free: 51.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.438e-05/2.441e-05, allocations: 4 kB / 425.3 MB, free: 8.223 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 58.85 MB / 484.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.336/0.4493, allocations: 94.33 MB / 0.5649 GB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001834/0.4496, allocations: 71.83 kB / 0.565 GB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03279/0.4824, allocations: 14.38 MB / 0.579 GB, free: 15.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4824, allocations: 3.938 kB / 0.579 GB, free: 15.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.282e-05/0.4825, allocations: 23.94 kB / 0.5791 GB, free: 15.31 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.001364/0.4838, allocations: 0.8674 MB / 0.5799 GB, free: 14.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.4839, allocations: 12.03 kB / 0.5799 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.484, allocations: 86.97 kB / 0.58 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007795/0.4848, allocations: 0.5144 MB / 0.5805 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.137e-05/0.4848, allocations: 43.69 kB / 0.5805 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/0.4849, allocations: 62.97 kB / 0.5806 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007796/0.4857, allocations: 0.5723 MB / 0.5812 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.4858, allocations: 7.188 kB / 0.5812 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.4858, allocations: 21.12 kB / 0.5812 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.4858, allocations: 16.34 kB / 0.5812 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004993/0.4863, allocations: 342.5 kB / 0.5815 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003443/0.4898, allocations: 3.022 MB / 0.5845 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005553/0.4904, allocations: 370 kB / 0.5848 GB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.4906, allocations: 140.8 kB / 0.585 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.4906, allocations: 4 kB / 0.585 GB, free: 9.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.4906, allocations: 49.38 kB / 0.585 GB, free: 9.926 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 1.884e-06/0.4907, allocations: 0 / 0.585 GB, free: 9.926 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0005813/0.4912, allocations: 349.8 kB / 0.5854 GB, free: 9.656 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.4913, allocations: 113.8 kB / 0.5855 GB, free: 9.523 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000481/0.4918, allocations: 479.7 kB / 0.5859 GB, free: 9.148 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.4918, allocations: 40.83 kB / 0.586 GB, free: 9.109 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.4921, allocations: 371.7 kB / 0.5863 GB, free: 8.859 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.4922, allocations: 154.3 kB / 0.5865 GB, free: 8.727 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.4922, allocations: 9.875 kB / 0.5865 GB, free: 8.727 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4923, allocations: 378.1 kB / 0.5868 GB, free: 8.379 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.4926, allocations: 151.4 kB / 0.587 GB, free: 8.289 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003608/0.4929, allocations: 359.5 kB / 0.5873 GB, free: 7.914 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.4932, allocations: 193.3 kB / 0.5875 GB, free: 7.785 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4933, allocations: 4 kB / 0.5875 GB, free: 7.781 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0008104/0.4941, allocations: 0.5821 MB / 0.5881 GB, free: 7.328 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009849/0.4951, allocations: 2.617 MB / 0.5906 GB, free: 4.555 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.4951, allocations: 12 kB / 0.5906 GB, free: 4.543 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.4951, allocations: 12 kB / 0.5907 GB, free: 4.531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005331/0.4957, allocations: 139.1 kB / 0.5908 GB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.4957, allocations: 19.92 kB / 0.5908 GB, free: 4.379 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.4961, allocations: 75.64 kB / 0.5909 GB, free: 4.316 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.4961, allocations: 23.5 kB / 0.5909 GB, free: 4.297 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/0.4961, allocations: 4.781 kB / 0.5909 GB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006827/0.4968, allocations: 0.4957 MB / 0.5914 GB, free: 3.938 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.4969, allocations: 8 kB / 0.5914 GB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.4969, allocations: 8 kB / 0.5914 GB, free: 3.922 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004673/0.4973, allocations: 141.9 kB / 0.5915 GB, free: 3.789 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.4974, allocations: 15.94 kB / 0.5916 GB, free: 3.773 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.4977, allocations: 65.61 kB / 0.5916 GB, free: 3.719 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/0.4978, allocations: 23.31 kB / 0.5916 GB, free: 3.699 MB / 410.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 () * 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.0001273/0.4979, allocations: 148.1 kB / 0.5918 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.498, allocations: 63.16 kB / 0.5918 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.4982, allocations: 70.67 kB / 0.5919 GB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4982, allocations: 4 kB / 0.5919 GB, free: 3.461 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.4982, allocations: 5.266 kB / 0.5919 GB, free: 3.457 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4982, allocations: 3.984 kB / 0.5919 GB, free: 3.453 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007046/0.4989, allocations: 0.5837 MB / 0.5925 GB, free: 2.957 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.4989, allocations: 4 kB / 0.5925 GB, free: 2.953 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004685/0.4994, allocations: 90.58 kB / 0.5926 GB, free: 2.871 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.4994, allocations: 4 kB / 0.5926 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.4995, allocations: 7.625 kB / 0.5926 GB, free: 2.863 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4995, allocations: 3.984 kB / 0.5926 GB, free: 2.859 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4995, allocations: 0 / 0.5926 GB, free: 2.859 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008357/0.5003, allocations: 0.7086 MB / 0.5933 GB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.5005, allocations: 173 kB / 0.5935 GB, free: 2.117 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.429e-05/0.5006, allocations: 14.12 kB / 0.5935 GB, free: 2.109 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003574/0.501, allocations: 37.47 kB / 0.5935 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.931e-05/0.5011, allocations: 34.97 kB / 0.5935 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.5011, allocations: 11.75 kB / 0.5935 GB, free: 2.039 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004218/0.5015, allocations: 370.6 kB / 0.5939 GB, free: 1.762 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5015, allocations: 0 / 0.5939 GB, free: 1.762 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008172/0.5024, allocations: 242.6 kB / 0.5941 GB, free: 1.547 MB / 410.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 () * 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.000179/0.5025, allocations: 116.5 kB / 0.5942 GB, free: 1.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.5036, allocations: 0.6558 MB / 0.5949 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5036, allocations: 0 / 0.5949 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.5039, allocations: 158 kB / 0.595 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008096/0.5047, allocations: 171.6 kB / 0.5952 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.5064, allocations: 1.059 MB / 0.5962 GB, free: 15.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.5069, allocations: 0.9281 MB / 0.5971 GB, free: 14.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005004/0.5074, allocations: 123.2 kB / 0.5973 GB, free: 14.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.5075, allocations: 35.44 kB / 0.5973 GB, free: 14.63 MB / 426.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5075, allocations: 0 / 0.5973 GB, free: 14.63 MB / 426.7 MB Notification: Performance of Templates: time 0.01319/0.5207, allocations: 6.998 MB / 0.6041 GB, free: 7.703 MB / 426.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/jenkins/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