Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009619/0.0009617, allocations: 94.42 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 183.8 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 241.8 MB, free: 384 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2253/0.2253, allocations: 44.23 MB / 337.1 MB, free: 2.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003562, allocations: 9.25 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1422, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004788/0.147, allocations: 3.371 MB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00311/0.1502, allocations: 1.161 MB / 476.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005318/0.1507, allocations: 19.88 kB / 476.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.1509, allocations: 55.42 kB / 476.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006837/0.1516, allocations: 187.3 kB / 476.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007543/0.1524, allocations: 301 kB / 476.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009277/0.1533, allocations: 0.543 MB / 477.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004761/0.1538, allocations: 220.7 kB / 477.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004394/0.1542, allocations: 258.8 kB / 477.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000318/0.1546, allocations: 254.5 kB / 477.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.74e-05/0.1546, allocations: 20 kB / 477.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.078e-05/0.1547, allocations: 24 kB / 477.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1548, allocations: 103.5 kB / 478 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1549, allocations: 141.3 kB / 478.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.1555, allocations: 0.5338 MB / 478.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.1555, allocations: 0 / 478.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1555, allocations: 4 kB / 478.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.1555, allocations: 0 / 478.7 MB, free: 6.453 MB / 350.1 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.001851/0.1574, allocations: 0.9503 MB / 479.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.949e-05/0.1575, allocations: 8.031 kB / 479.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.1576, allocations: 90.52 kB / 479.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.1578, allocations: 90.97 kB / 479.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009995/0.1588, allocations: 486.5 kB / 480.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.795e-05/0.1589, allocations: 45.27 kB / 480.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.794e-05/0.159, allocations: 67.98 kB / 480.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.1601, allocations: 0.5998 MB / 481 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.1601, allocations: 11.91 kB / 481 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/0.1602, allocations: 24 kB / 481 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.1602, allocations: 12 kB / 481.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007885/0.161, allocations: 405.9 kB / 481.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.1656, allocations: 3.036 MB / 484.5 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.1667, allocations: 466.2 kB / 484.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.95e-05/0.1668, allocations: 7.984 kB / 485 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.1668, allocations: 42.66 kB / 485 MB, free: 15.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.014e-06/0.1668, allocations: 3.938 kB / 485 MB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001271/0.1681, allocations: 0.5644 MB / 485.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.1682, allocations: 110.8 kB / 485.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007024/0.1689, allocations: 0.543 MB / 486.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.169, allocations: 33.7 kB / 486.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000288/0.1692, allocations: 364.1 kB / 486.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.1695, allocations: 157.8 kB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.1695, allocations: 12 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.1697, allocations: 374.7 kB / 487.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.1702, allocations: 193.2 kB / 487.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000622/0.1708, allocations: 397 kB / 487.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004667/0.1713, allocations: 232.7 kB / 487.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.1713, allocations: 4 kB / 487.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001271/0.1726, allocations: 0.6645 MB / 488.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001572/0.1741, allocations: 2.619 MB / 491.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.1742, allocations: 4 kB / 491.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.1742, allocations: 12 kB / 491.2 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000592/0.1748, allocations: 147.7 kB / 491.4 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/0.1748, allocations: 11.95 kB / 491.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004668/0.1753, allocations: 83.34 kB / 491.5 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.869e-05/0.1754, allocations: 32 kB / 491.5 MB, free: 8.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.884e-06/0.1754, allocations: 4 kB / 491.5 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000979/0.1764, allocations: 0.5504 MB / 492.1 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1764, allocations: 12 kB / 492.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1764, allocations: 12 kB / 492.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.1769, allocations: 136.2 kB / 492.2 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.1769, allocations: 16 kB / 492.2 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003635/0.1773, allocations: 71.36 kB / 492.3 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/0.1774, allocations: 28 kB / 492.3 MB, free: 8.098 MB / 366.1 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.0003718/0.1777, allocations: 276.8 kB / 492.6 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.1779, allocations: 63.25 kB / 492.7 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.178, allocations: 74.16 kB / 492.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.1781, allocations: 8 kB / 492.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.1781, allocations: 0 / 492.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1781, allocations: 4 kB / 492.8 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007936/0.1789, allocations: 0.5672 MB / 493.3 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1789, allocations: 4 kB / 493.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.1794, allocations: 87.89 kB / 493.4 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.1794, allocations: 7.984 kB / 493.4 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.1794, allocations: 12 kB / 493.4 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1794, allocations: 4 kB / 493.4 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1795, allocations: 0 / 493.4 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.1808, allocations: 0.8211 MB / 494.3 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002141/0.181, allocations: 172.3 kB / 494.4 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.951e-05/0.1811, allocations: 8 kB / 494.4 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003359/0.1815, allocations: 39.97 kB / 494.5 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.989e-05/0.1815, allocations: 23.95 kB / 494.5 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.1816, allocations: 12 kB / 494.5 MB, free: 5.828 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004431/0.182, allocations: 371.1 kB / 494.9 MB, free: 5.469 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.182, allocations: 0 / 494.9 MB, free: 5.469 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009105/0.183, allocations: 239.2 kB / 495.1 MB, free: 5.234 MB / 366.1 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.001752/0.1847, allocations: 1.445 MB / 496.5 MB, free: 3.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.1862, allocations: 0.7451 MB / 497.3 MB, free: 3.016 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1862, allocations: 0 / 497.3 MB, free: 3.016 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000445/0.1867, allocations: 199.8 kB / 497.5 MB, free: 2.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008918/0.1876, allocations: 155.8 kB / 497.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008888/0.1965, allocations: 8.454 MB / 0.4942 GB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007385/0.1973, allocations: 0.9339 MB / 0.4951 GB, free: 9.062 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000413/0.1977, allocations: 76.8 kB / 0.4952 GB, free: 8.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/0.1981, allocations: 239.4 kB / 0.4954 GB, free: 8.754 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1981, allocations: 0 / 0.4954 GB, free: 8.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3206/0.5187, allocations: 11.68 MB / 0.5069 GB, free: 47.82 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.5189, allocations: 169.5 kB / 0.507 GB, free: 47.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.544, allocations: 4 kB / 0.507 GB, free: 47.58 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat