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.001603/0.001603, allocations: 187 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.139/2.139, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.00233/0.00233, allocations: 106.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3141/0.3141, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006282/0.0006285, allocations: 16 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1241, allocations: 58.87 MB / 490.2 MB, free: 9.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.007472/0.1316, allocations: 3.367 MB / 493.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004758/0.1365, allocations: 1.201 MB / 494.8 MB, free: 4.738 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009526/0.1375, allocations: 19.88 kB / 494.8 MB, free: 4.719 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002521/0.1378, allocations: 55.42 kB / 494.9 MB, free: 4.664 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001452/0.1393, allocations: 187.4 kB / 495 MB, free: 4.48 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001827/0.1411, allocations: 291.5 kB / 495.3 MB, free: 4.195 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002392/0.1435, allocations: 0.5507 MB / 495.9 MB, free: 3.641 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009046/0.1445, allocations: 220.8 kB / 496.1 MB, free: 3.414 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009438/0.1455, allocations: 262.8 kB / 496.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006197/0.1461, allocations: 250.5 kB / 496.6 MB, free: 2.91 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.1463, allocations: 28 kB / 496.6 MB, free: 2.883 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.1465, allocations: 24 kB / 496.6 MB, free: 2.859 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.1467, allocations: 103.5 kB / 496.7 MB, free: 2.758 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002495/0.147, allocations: 141.3 kB / 496.9 MB, free: 2.613 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001249/0.1482, allocations: 0.534 MB / 497.4 MB, free: 2.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1483, allocations: 0 / 497.4 MB, free: 2.078 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1483, allocations: 0 / 497.4 MB, free: 2.078 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.1483, allocations: 4 kB / 497.4 MB, free: 2.074 MB / 330.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.003672/0.152, allocations: 0.9464 MB / 498.4 MB, free: 1.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/0.1521, allocations: 12.02 kB / 498.4 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003568/0.1525, allocations: 90.92 kB / 498.5 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.1541, allocations: 498.4 kB / 499 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.1543, allocations: 45.31 kB / 499 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.1545, allocations: 60 kB / 499.1 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002633/0.1571, allocations: 0.6074 MB / 499.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.355e-05/0.1573, allocations: 11.91 kB / 499.7 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.1574, allocations: 20 kB / 499.7 MB, free: 15.65 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.43e-05/0.1575, allocations: 19.95 kB / 499.7 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.1597, allocations: 398.2 kB / 0.4884 GB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009589/0.1694, allocations: 3.025 MB / 0.4913 GB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002564/0.172, allocations: 484.6 kB / 0.4918 GB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.513e-05/0.1721, allocations: 12.14 kB / 0.4918 GB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.633e-05/0.1722, allocations: 42.52 kB / 0.4919 GB, free: 11.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 4.508e-06/0.1722, allocations: 0 / 0.4919 GB, free: 11.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.003171/0.1754, allocations: 0.572 MB / 0.4924 GB, free: 10.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1756, allocations: 110.8 kB / 0.4925 GB, free: 10.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.177, allocations: 0.5393 MB / 0.493 GB, free: 10.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001488/0.1772, allocations: 33.64 kB / 0.4931 GB, free: 10.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00049/0.1777, allocations: 394.5 kB / 0.4935 GB, free: 9.844 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003275/0.1781, allocations: 157.8 kB / 0.4936 GB, free: 9.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.447e-05/0.1782, allocations: 8 kB / 0.4936 GB, free: 9.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.1784, allocations: 342.8 kB / 0.4939 GB, free: 9.336 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.1795, allocations: 185.2 kB / 0.4941 GB, free: 9.152 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.1807, allocations: 393.1 kB / 0.4945 GB, free: 8.676 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.1819, allocations: 239.6 kB / 0.4947 GB, free: 8.441 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.182, allocations: 0 / 0.4947 GB, free: 8.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002806/0.1848, allocations: 0.6266 MB / 0.4953 GB, free: 7.809 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001495/0.1863, allocations: 2.615 MB / 0.4979 GB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.812e-05/0.1864, allocations: 8 kB / 0.4979 GB, free: 4.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.735e-05/0.1865, allocations: 12 kB / 0.4979 GB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.1882, allocations: 139.8 kB / 0.498 GB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.106e-05/0.1883, allocations: 15.94 kB / 0.4981 GB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.1894, allocations: 83.36 kB / 0.4981 GB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.1896, allocations: 24 kB / 0.4982 GB, free: 4.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.1896, allocations: 4 kB / 0.4982 GB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002702/0.1923, allocations: 0.5423 MB / 0.4987 GB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.331e-05/0.1924, allocations: 11.98 kB / 0.4987 GB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.1925, allocations: 8 kB / 0.4987 GB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.1939, allocations: 148.2 kB / 0.4988 GB, free: 4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.072e-05/0.194, allocations: 12.47 kB / 0.4989 GB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008323/0.1948, allocations: 67.42 kB / 0.4989 GB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.002e-05/0.1949, allocations: 24 kB / 0.4989 GB, free: 3.898 MB / 346.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.0007113/0.1957, allocations: 272.9 kB / 0.4992 GB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003308/0.196, allocations: 63.25 kB / 0.4993 GB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002787/0.1963, allocations: 74.17 kB / 0.4993 GB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-05/0.1964, allocations: 15.94 kB / 0.4994 GB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.1964, allocations: 4 kB / 0.4994 GB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.1964, allocations: 0 / 0.4994 GB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.1983, allocations: 0.5712 MB / 0.4999 GB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.1984, allocations: 0 / 0.4999 GB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/0.1999, allocations: 91.89 kB / 0.5 GB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-05/0.2, allocations: 0 / 0.5 GB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.456e-05/0.2001, allocations: 27.86 kB / 0.5 GB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.2002, allocations: 4 kB / 0.5 GB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.2002, allocations: 3.953 kB / 0.5 GB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002699/0.2029, allocations: 0.8208 MB / 0.5008 GB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004061/0.2033, allocations: 172.3 kB / 0.501 GB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.2035, allocations: 12 kB / 0.501 GB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008758/0.2044, allocations: 35.94 kB / 0.501 GB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.2046, allocations: 31.94 kB / 0.5011 GB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-05/0.2046, allocations: 12 kB / 0.5011 GB, free: 1.602 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009209/0.2056, allocations: 371.1 kB / 0.5014 GB, free: 1.242 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2056, allocations: 0 / 0.5014 GB, free: 1.242 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002004/0.2076, allocations: 239.2 kB / 0.5017 GB, free: 1.008 MB / 346.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 0.0002364/0.2079, allocations: 107.2 kB / 0.5018 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003371/0.2113, allocations: 0.7501 MB / 0.5025 GB, free: 152 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.2114, allocations: 0 / 0.5025 GB, free: 152 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009742/0.2124, allocations: 196 kB / 0.5027 GB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.2143, allocations: 154.9 kB / 0.5028 GB, free: 15.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004969/0.2193, allocations: 1.712 MB / 0.5045 GB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.2204, allocations: 0.9301 MB / 0.5054 GB, free: 13.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004457/0.2209, allocations: 43.44 kB / 0.5055 GB, free: 13.06 MB / 362.7 MB Notification: Performance of SimCode: time 1.523e-06/0.2209, allocations: 0 / 0.5055 GB, free: 13.06 MB / 362.7 MB Notification: Performance of Templates: time 0.02547/0.2464, allocations: 7.47 MB / 0.5128 GB, free: 5.602 MB / 362.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