Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009772/0.009772, allocations: 165.5 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.644/1.644, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.009763/0.009763, allocations: 111.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4575/0.4575, allocations: 38.05 MB / 303.7 MB, free: 42.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.00047, allocations: 12 kB / 363 MB, free: 5.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1135, allocations: 48.71 MB / 411.7 MB, free: 4.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5984/0.7119, allocations: 82.44 MB / 494.1 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.7122, allocations: 70.16 kB / 494.2 MB, free: 5.062 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06284/0.7751, allocations: 14.18 MB / 0.4965 GB, free: 9.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.7752, allocations: 4 kB / 0.4965 GB, free: 9.172 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.993e-05/0.7752, allocations: 19.94 kB / 0.4965 GB, free: 9.152 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002799/0.778, allocations: 0.9248 MB / 0.4974 GB, free: 8.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.7781, allocations: 12.03 kB / 0.4974 GB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002055/0.7783, allocations: 84.97 kB / 0.4975 GB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.7786, allocations: 78.44 kB / 0.4975 GB, free: 8.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.7799, allocations: 494.6 kB / 0.498 GB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.666e-05/0.78, allocations: 39.25 kB / 0.4981 GB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.7801, allocations: 58.44 kB / 0.4981 GB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.7816, allocations: 499.4 kB / 0.4986 GB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.7816, allocations: 3.938 kB / 0.4986 GB, free: 7.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.349e-05/0.7817, allocations: 19.28 kB / 0.4986 GB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/0.7817, allocations: 15.95 kB / 0.4986 GB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.783, allocations: 366.2 kB / 0.499 GB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005331/0.7884, allocations: 1.773 MB / 0.5007 GB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.7902, allocations: 475.2 kB / 0.5012 GB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.043e-05/0.7903, allocations: 4.156 kB / 0.5012 GB, free: 5.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.7903, allocations: 38 kB / 0.5012 GB, free: 5.004 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 3.977e-06/0.7903, allocations: 0 / 0.5012 GB, free: 5.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.002155/0.7925, allocations: 0.5533 MB / 0.5017 GB, free: 4.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.036e-05/0.7926, allocations: 132.5 kB / 0.5019 GB, free: 4.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007437/0.7934, allocations: 405.3 kB / 0.5023 GB, free: 4.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.508e-05/0.7935, allocations: 32.77 kB / 0.5023 GB, free: 4.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.7937, allocations: 310.5 kB / 0.5026 GB, free: 3.848 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.794, allocations: 149 kB / 0.5027 GB, free: 3.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.384e-05/0.794, allocations: 14.19 kB / 0.5027 GB, free: 3.715 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.7942, allocations: 364.1 kB / 0.5031 GB, free: 3.371 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006709/0.7949, allocations: 172.5 kB / 0.5032 GB, free: 3.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007983/0.7957, allocations: 309.5 kB / 0.5035 GB, free: 2.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/0.7965, allocations: 204.3 kB / 0.5037 GB, free: 2.836 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.7965, allocations: 0 / 0.5037 GB, free: 2.836 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001877/0.7984, allocations: 0.5579 MB / 0.5043 GB, free: 2.406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.7984, allocations: 4 kB / 0.5043 GB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.7984, allocations: 4 kB / 0.5043 GB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.869e-05/0.7985, allocations: 8 kB / 0.5043 GB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000927/0.7994, allocations: 124.9 kB / 0.5044 GB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.7995, allocations: 12.06 kB / 0.5044 GB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007019/0.8002, allocations: 73.95 kB / 0.5045 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-05/0.8002, allocations: 19.36 kB / 0.5045 GB, free: 2.184 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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.000385/0.8006, allocations: 178.4 kB / 0.5047 GB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.8008, allocations: 63.28 kB / 0.5047 GB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.801, allocations: 54.92 kB / 0.5048 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.801, allocations: 7.938 kB / 0.5048 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.801, allocations: 11.94 kB / 0.5048 GB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.801, allocations: 3.984 kB / 0.5048 GB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.8021, allocations: 0.5455 MB / 0.5054 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.8022, allocations: 0 / 0.5054 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009644/0.8031, allocations: 91.81 kB / 0.5054 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.8032, allocations: 0 / 0.5054 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.104e-05/0.8032, allocations: 13.64 kB / 0.5055 GB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/0.8032, allocations: 8 kB / 0.5055 GB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.8033, allocations: 0 / 0.5055 GB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002235/0.8055, allocations: 0.817 MB / 0.5063 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.8058, allocations: 166.6 kB / 0.5064 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.806, allocations: 7.734 kB / 0.5064 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006527/0.8066, allocations: 39.3 kB / 0.5065 GB, free: 496 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.8068, allocations: 27.95 kB / 0.5065 GB, free: 468 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.8068, allocations: 11.42 kB / 0.5065 GB, free: 460 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005528/0.8074, allocations: 317.8 kB / 0.5068 GB, free: 212 kB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8074, allocations: 0 / 0.5068 GB, free: 212 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007129/0.8081, allocations: 130.3 kB / 0.5069 GB, free: 96 kB / 346.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 (38): * Single equations (assignments): 38 * 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.002714/0.8109, allocations: 1.417 MB / 0.5083 GB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.8125, allocations: 425.5 kB / 0.5087 GB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.8125, allocations: 4.062 kB / 0.5087 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006797/0.8132, allocations: 199.1 kB / 0.5089 GB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.8145, allocations: 144.4 kB / 0.509 GB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009585/0.8241, allocations: 5.889 MB / 0.5148 GB, free: 8.734 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006106/0.8248, allocations: 0.8907 MB / 0.5157 GB, free: 7.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004995/0.8253, allocations: 64.23 kB / 0.5157 GB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003908/0.8257, allocations: 207.7 kB / 0.5159 GB, free: 7.703 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8257, allocations: 3.938 kB / 0.5159 GB, free: 7.699 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05399/0.8797, allocations: 10.43 MB / 0.5261 GB, free: 13.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003557/0.8802, allocations: 168.5 kB / 0.5263 GB, free: 13.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.697/3.577, allocations: 0 / 0.5263 GB, free: 13.11 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat