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.0009475/0.0009476, allocations: 175.4 kB / 16.72 MB, free: 5.059 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.2/1.2, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007094/0.0007094, allocations: 88.77 kB / 271.2 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.2763/0.2763, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 15.94 kB / 432 MB, free: 5.609 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08825/0.08865, allocations: 58.85 MB / 490.8 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.003647/0.09235, allocations: 3.435 MB / 494.2 MB, free: 7.207 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.09421, allocations: 1.213 MB / 495.5 MB, free: 5.988 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000276/0.0945, allocations: 23.88 kB / 495.5 MB, free: 5.965 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.09471, allocations: 79.22 kB / 495.6 MB, free: 5.887 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003972/0.09511, allocations: 135 kB / 495.7 MB, free: 5.754 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005713/0.09569, allocations: 295.5 kB / 496 MB, free: 5.465 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007539/0.09647, allocations: 0.7603 MB / 496.7 MB, free: 4.703 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003929/0.09687, allocations: 268.6 kB / 497 MB, free: 4.426 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.09719, allocations: 242.8 kB / 497.2 MB, free: 4.188 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002608/0.09746, allocations: 254.5 kB / 497.5 MB, free: 3.938 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.86e-05/0.09753, allocations: 24 kB / 497.5 MB, free: 3.914 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.928e-05/0.09759, allocations: 24 kB / 497.5 MB, free: 3.891 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.917e-05/0.09769, allocations: 107.4 kB / 497.6 MB, free: 3.785 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.09791, allocations: 303.9 kB / 497.9 MB, free: 3.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004434/0.09836, allocations: 0.5493 MB / 498.5 MB, free: 2.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.09837, allocations: 0 / 498.5 MB, free: 2.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.09838, allocations: 0 / 498.5 MB, free: 2.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.09839, allocations: 0 / 498.5 MB, free: 2.93 MB / 378.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.001391/0.09979, allocations: 0.9426 MB / 499.4 MB, free: 1.938 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.09983, allocations: 12.03 kB / 499.4 MB, free: 1.926 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.09995, allocations: 91.81 kB / 499.5 MB, free: 1.836 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000606/0.1006, allocations: 0.5032 MB / 0.4883 GB, free: 1.293 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.1006, allocations: 45.69 kB / 0.4884 GB, free: 1.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.029e-05/0.1007, allocations: 68.27 kB / 0.4884 GB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.1016, allocations: 0.6078 MB / 0.489 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.1017, allocations: 3.938 kB / 0.489 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.896e-05/0.1017, allocations: 24 kB / 0.489 GB, free: 500 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.1017, allocations: 16 kB / 0.4891 GB, free: 484 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007394/0.1025, allocations: 402.2 kB / 0.4894 GB, free: 80 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.152/0.2545, allocations: 3.024 MB / 0.4924 GB, free: 41.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000921/0.2554, allocations: 466.5 kB / 0.4928 GB, free: 41.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003646/0.2558, allocations: 184.4 kB / 0.493 GB, free: 41.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.831e-05/0.2558, allocations: 9.719 kB / 0.493 GB, free: 41.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.2559, allocations: 39.5 kB / 0.4931 GB, free: 41.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 3.125e-06/0.2559, allocations: 0.5156 kB / 0.4931 GB, free: 41.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001143/0.257, allocations: 0.567 MB / 0.4936 GB, free: 41.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.2571, allocations: 112 kB / 0.4937 GB, free: 40.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/0.2576, allocations: 0.5408 MB / 0.4943 GB, free: 40.76 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.2577, allocations: 34.73 kB / 0.4943 GB, free: 40.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.2578, allocations: 375.5 kB / 0.4946 GB, free: 40.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.424e-05/0.2579, allocations: 152.9 kB / 0.4948 GB, free: 40.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.258, allocations: 10.72 kB / 0.4948 GB, free: 40.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.563e-05/0.2581, allocations: 390.9 kB / 0.4952 GB, free: 40.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/0.2584, allocations: 179.6 kB / 0.4953 GB, free: 40.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.2589, allocations: 404.7 kB / 0.4957 GB, free: 39.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008154/0.2597, allocations: 0.5899 MB / 0.4963 GB, free: 39.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.2597, allocations: 3 kB / 0.4963 GB, free: 39.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001098/0.2608, allocations: 0.6657 MB / 0.497 GB, free: 39.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.022e-05/0.2609, allocations: 297.3 kB / 0.4972 GB, free: 39.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.261, allocations: 7.781 kB / 0.4973 GB, free: 39.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.261, allocations: 11.59 kB / 0.4973 GB, free: 39.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.2615, allocations: 147.2 kB / 0.4974 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.2615, allocations: 10.27 kB / 0.4974 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.2619, allocations: 82.92 kB / 0.4975 GB, free: 39.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.2619, allocations: 32.69 kB / 0.4975 GB, free: 39.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.402e-06/0.262, allocations: 7.547 kB / 0.4975 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009187/0.2629, allocations: 0.543 MB / 0.4981 GB, free: 39.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2629, allocations: 8.516 kB / 0.4981 GB, free: 39.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.2629, allocations: 9.625 kB / 0.4981 GB, free: 39.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004433/0.2634, allocations: 140.4 kB / 0.4982 GB, free: 39.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.2634, allocations: 16.75 kB / 0.4982 GB, free: 39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/0.2637, allocations: 64.08 kB / 0.4983 GB, free: 38.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.2638, allocations: 29.56 kB / 0.4983 GB, free: 38.98 MB / 378.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.0002303/0.264, allocations: 272.8 kB / 0.4986 GB, free: 38.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.2641, allocations: 67.34 kB / 0.4986 GB, free: 38.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.2642, allocations: 71.45 kB / 0.4987 GB, free: 38.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.2642, allocations: 5.594 kB / 0.4987 GB, free: 38.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.2643, allocations: 0.9844 kB / 0.4987 GB, free: 38.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.2643, allocations: 5.281 kB / 0.4987 GB, free: 38.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007132/0.265, allocations: 0.5706 MB / 0.4993 GB, free: 38.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.265, allocations: 4 kB / 0.4993 GB, free: 38.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.2655, allocations: 92.2 kB / 0.4994 GB, free: 38.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.2655, allocations: 1.469 kB / 0.4994 GB, free: 38.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.2655, allocations: 9.453 kB / 0.4994 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.2655, allocations: 8.516 kB / 0.4994 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2655, allocations: 1.344 kB / 0.4994 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.2666, allocations: 0.8179 MB / 0.5002 GB, free: 37.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.2667, allocations: 171.1 kB / 0.5004 GB, free: 37.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.365e-05/0.2668, allocations: 9.859 kB / 0.5004 GB, free: 37.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003052/0.2671, allocations: 31.06 kB / 0.5004 GB, free: 37.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.155e-05/0.2672, allocations: 33.45 kB / 0.5004 GB, free: 37.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.2672, allocations: 8.75 kB / 0.5004 GB, free: 37.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003076/0.2675, allocations: 374.6 kB / 0.5008 GB, free: 37.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2675, allocations: 0 / 0.5008 GB, free: 37.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007045/0.2682, allocations: 238 kB / 0.501 GB, free: 37.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,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) * 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 8.887e-05/0.2683, allocations: 114.2 kB / 0.5011 GB, free: 37.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.2695, allocations: 0.7471 MB / 0.5019 GB, free: 37.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2695, allocations: 2.938 kB / 0.5019 GB, free: 37.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.2698, allocations: 198.8 kB / 0.502 GB, free: 37.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000859/0.2707, allocations: 164.1 kB / 0.5022 GB, free: 37.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.2724, allocations: 1.717 MB / 0.5039 GB, free: 36.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.2727, allocations: 0.9162 MB / 0.5048 GB, free: 35.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.2729, allocations: 44.06 kB / 0.5048 GB, free: 35.39 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2729, allocations: 0 / 0.5048 GB, free: 35.39 MB / 378.7 MB Notification: Performance of Templates: time 0.008672/0.2816, allocations: 7.615 MB / 0.5123 GB, free: 34.68 MB / 378.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/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_cpp_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches