Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009885/0.0009882, allocations: 82.62 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.37e-05/3.403e-05, allocations: 0 / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09614/0.0962, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.32/0.4163, allocations: 100.1 MB / 0.4905 GB, free: 5.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.4166, allocations: 88.56 kB / 0.4905 GB, free: 5.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07045/0.487, allocations: 27.56 MB / 0.5175 GB, free: 11.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4871, allocations: 7.938 kB / 0.5175 GB, free: 11.31 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.176e-05/0.4872, allocations: 23.94 kB / 0.5175 GB, free: 11.29 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001756/0.4889, allocations: 1.156 MB / 0.5186 GB, free: 10.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.489, allocations: 8.031 kB / 0.5186 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001745/0.4891, allocations: 152.1 kB / 0.5188 GB, free: 9.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006039/0.4898, allocations: 190.3 kB / 0.519 GB, free: 9.742 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.4912, allocations: 0.8327 MB / 0.5198 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.4913, allocations: 74 kB / 0.5198 GB, free: 8.797 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.4914, allocations: 99.91 kB / 0.5199 GB, free: 8.699 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.4929, allocations: 0.907 MB / 0.5208 GB, free: 7.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.4929, allocations: 11.91 kB / 0.5208 GB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/0.493, allocations: 40 kB / 0.5209 GB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.493, allocations: 25.78 kB / 0.5209 GB, free: 7.676 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009919/0.494, allocations: 0.5896 MB / 0.5215 GB, free: 7.086 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004885/0.4989, allocations: 4.141 MB / 0.5255 GB, free: 2.719 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007804/0.4997, allocations: 365.4 kB / 0.5259 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.4999, allocations: 145.4 kB / 0.526 GB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.5, allocations: 11.89 kB / 0.526 GB, free: 2.203 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.5, allocations: 34.56 kB / 0.526 GB, free: 2.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.064e-06/0.5, allocations: 0 / 0.526 GB, free: 2.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.001638/0.5017, allocations: 1.059 MB / 0.5271 GB, free: 1.047 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.5017, allocations: 89.11 kB / 0.5272 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009115/0.5026, allocations: 0.733 MB / 0.5279 GB, free: 188 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.5027, allocations: 37.7 kB / 0.5279 GB, free: 144 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003642/0.503, allocations: 0.5876 MB / 0.5285 GB, free: 15.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.97e-05/0.5032, allocations: 153.9 kB / 0.5286 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.512e-05/0.5032, allocations: 12 kB / 0.5286 GB, free: 15.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.5033, allocations: 341.9 kB / 0.529 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.5035, allocations: 137.6 kB / 0.5291 GB, free: 14.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004054/0.5039, allocations: 466.7 kB / 0.5295 GB, free: 14.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.5043, allocations: 224 kB / 0.5298 GB, free: 14.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.5043, allocations: 5.594 kB / 0.5298 GB, free: 14.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001014/0.5053, allocations: 0.7088 MB / 0.5305 GB, free: 13.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00138/0.5067, allocations: 4.091 MB / 0.5345 GB, free: 8.949 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.5067, allocations: 12 kB / 0.5345 GB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.5069, allocations: 40.84 kB / 0.5345 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006093/0.5075, allocations: 171.7 kB / 0.5347 GB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009423/0.5085, allocations: 1.299 MB / 0.5359 GB, free: 7.297 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005375/0.509, allocations: 31.91 kB / 0.536 GB, free: 7.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.5091, allocations: 36 kB / 0.536 GB, free: 7.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.523e-06/0.5091, allocations: 0 / 0.536 GB, free: 7.23 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008857/0.51, allocations: 0.5978 MB / 0.5366 GB, free: 6.629 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.51, allocations: 8.906 kB / 0.5366 GB, free: 6.621 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.8e-05/0.5101, allocations: 44.78 kB / 0.5366 GB, free: 6.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005095/0.5107, allocations: 167.7 kB / 0.5368 GB, free: 6.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008327/0.5115, allocations: 1.28 MB / 0.538 GB, free: 4.992 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005089/0.512, allocations: 31.98 kB / 0.5381 GB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.5121, allocations: 36 kB / 0.5381 GB, free: 4.926 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001529/0.5122, allocations: 151.2 kB / 0.5383 GB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.5124, allocations: 90.88 kB / 0.5383 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007446/0.5131, allocations: 410.4 kB / 0.5387 GB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.5131, allocations: 4 kB / 0.5387 GB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.5131, allocations: 0 / 0.5387 GB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.5132, allocations: 7.938 kB / 0.5387 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.5149, allocations: 1.313 MB / 0.54 GB, free: 2.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.5149, allocations: 0 / 0.54 GB, free: 2.871 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.5153, allocations: 75.89 kB / 0.5401 GB, free: 2.797 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-05/0.5154, allocations: 24.89 kB / 0.5401 GB, free: 2.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/0.5154, allocations: 20.2 kB / 0.5401 GB, free: 2.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007883/0.5162, allocations: 1.268 MB / 0.5414 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.5162, allocations: 8.188 kB / 0.5414 GB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008475/0.5171, allocations: 0.7393 MB / 0.5421 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.5174, allocations: 204 kB / 0.5423 GB, free: 312 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.601e-05/0.5174, allocations: 12 kB / 0.5423 GB, free: 300 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003627/0.5178, allocations: 19.98 kB / 0.5423 GB, free: 280 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/0.5179, allocations: 35.86 kB / 0.5424 GB, free: 244 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.5179, allocations: 8 kB / 0.5424 GB, free: 236 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007232/0.5187, allocations: 0.5627 MB / 0.5429 GB, free: 15.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.5187, allocations: 0 / 0.5429 GB, free: 15.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001217/0.5199, allocations: 384 kB / 0.5433 GB, free: 15.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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): 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00155/0.5214, allocations: 1.946 MB / 0.5452 GB, free: 13.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.5229, allocations: 0.963 MB / 0.5461 GB, free: 12.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.5229, allocations: 0 / 0.5461 GB, free: 12.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003209/0.5233, allocations: 270.7 kB / 0.5464 GB, free: 11.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009803/0.5242, allocations: 215.1 kB / 0.5466 GB, free: 11.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.5271, allocations: 1.5 MB / 0.5481 GB, free: 10.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006041/0.5277, allocations: 1.05 MB / 0.5491 GB, free: 9.145 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000763/0.5285, allocations: 170.1 kB / 0.5492 GB, free: 8.977 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004195/0.5289, allocations: 387.3 kB / 0.5496 GB, free: 8.602 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5289, allocations: 0 / 0.5496 GB, free: 8.602 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04044/0.5694, allocations: 21.88 MB / 0.571 GB, free: 3.051 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.5696, allocations: 198.7 kB / 0.5712 GB, free: 2.824 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.914/3.483, allocations: 4 kB / 0.5712 GB, free: 2.82 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat