Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008652/0.0008651, allocations: 91.02 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.656e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.09285, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3597/0.4526, allocations: 116.3 MB / 0.492 GB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4529, allocations: 83.95 kB / 0.4921 GB, free: 10.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0998/0.5527, allocations: 42.04 MB / 0.5332 GB, free: 68 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5527, allocations: 0 / 0.5332 GB, free: 68 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001005/0.5528, allocations: 40 kB / 0.5332 GB, free: 28 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.00295/0.5558, allocations: 1.71 MB / 0.5349 GB, free: 14.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.5558, allocations: 8.031 kB / 0.5349 GB, free: 14.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006979/0.5566, allocations: 269.3 kB / 0.5351 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002111/0.5587, allocations: 1.154 MB / 0.5363 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.5588, allocations: 52 kB / 0.5363 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/0.559, allocations: 107.9 kB / 0.5364 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001783/0.5608, allocations: 0.8736 MB / 0.5373 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00238/0.5631, allocations: 1.267 MB / 0.5385 GB, free: 10.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.802e-05/0.5632, allocations: 7.906 kB / 0.5385 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.383e-05/0.5633, allocations: 3.984 kB / 0.5385 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.967e-05/0.5634, allocations: 44 kB / 0.5386 GB, free: 10.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008653/0.572, allocations: 6.455 MB / 0.5449 GB, free: 3.613 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.5735, allocations: 0.8539 MB / 0.5457 GB, free: 2.695 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/0.5739, allocations: 238.5 kB / 0.5459 GB, free: 2.461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.533e-05/0.574, allocations: 8.562 kB / 0.5459 GB, free: 2.453 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.574, allocations: 39.12 kB / 0.546 GB, free: 2.402 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 2.204e-06/0.574, allocations: 0 / 0.546 GB, free: 2.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.00248/0.5765, allocations: 1.44 MB / 0.5474 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.5766, allocations: 89.62 kB / 0.5475 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2237/0.8003, allocations: 0.8958 MB / 0.5483 GB, free: 108.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.8005, allocations: 27.02 kB / 0.5484 GB, free: 108.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009395/0.8015, allocations: 0.9047 MB / 0.5492 GB, free: 108.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.8017, allocations: 236.2 kB / 0.5495 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.8017, allocations: 0 / 0.5495 GB, free: 108.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.8019, allocations: 346 kB / 0.5498 GB, free: 108.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.8023, allocations: 223.2 kB / 0.55 GB, free: 108.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006748/0.803, allocations: 0.6229 MB / 0.5506 GB, free: 107.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/0.8036, allocations: 329.6 kB / 0.5509 GB, free: 107.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.8036, allocations: 4.281 kB / 0.5509 GB, free: 107.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001782/0.8054, allocations: 0.9212 MB / 0.5518 GB, free: 107.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0011/0.8065, allocations: 5.33 MB / 0.557 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.8065, allocations: 15.84 kB / 0.5571 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001956/0.8067, allocations: 42.86 kB / 0.5571 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.8078, allocations: 273 kB / 0.5574 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007771/0.8086, allocations: 1.253 MB / 0.5586 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009198/0.8095, allocations: 51.66 kB / 0.5586 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.855e-05/0.8096, allocations: 52.11 kB / 0.5587 GB, free: 100.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.8096, allocations: 4.156 kB / 0.5587 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001391/0.811, allocations: 0.7448 MB / 0.5594 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.811, allocations: 17.25 kB / 0.5594 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001036/0.8111, allocations: 39.09 kB / 0.5595 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008476/0.812, allocations: 254.8 kB / 0.5597 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000673/0.8127, allocations: 1.251 MB / 0.5609 GB, free: 99.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008563/0.8136, allocations: 28.03 kB / 0.561 GB, free: 99.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.651e-05/0.8137, allocations: 48.66 kB / 0.561 GB, free: 99.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.0002358/0.8139, allocations: 153.5 kB / 0.5611 GB, free: 99.45 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001001/0.8149, allocations: 0.5205 MB / 0.5617 GB, free: 99.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.8151, allocations: 122.2 kB / 0.5618 GB, free: 99.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.8161, allocations: 0.5443 MB / 0.5623 GB, free: 99.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.8161, allocations: 10.59 kB / 0.5623 GB, free: 99.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.8161, allocations: 0 / 0.5623 GB, free: 99.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.8161, allocations: 3.672 kB / 0.5623 GB, free: 99.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/0.8192, allocations: 1.753 MB / 0.564 GB, free: 98.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.8192, allocations: 3.266 kB / 0.564 GB, free: 98.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006561/0.8199, allocations: 145.7 kB / 0.5642 GB, free: 98.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.764e-05/0.82, allocations: 20.61 kB / 0.5642 GB, free: 98.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.82, allocations: 15.7 kB / 0.5642 GB, free: 98.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006309/0.8207, allocations: 1.23 MB / 0.5654 GB, free: 97.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.8207, allocations: 3.062 kB / 0.5654 GB, free: 97.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.822, allocations: 1.003 MB / 0.5664 GB, free: 97.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004381/0.8224, allocations: 249.6 kB / 0.5666 GB, free: 97.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001825/0.8226, allocations: 9.594 kB / 0.5666 GB, free: 97.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000576/0.8232, allocations: 48.33 kB / 0.5667 GB, free: 97.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.435e-05/0.8233, allocations: 41.75 kB / 0.5667 GB, free: 97.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.76e-05/0.8234, allocations: 25.23 kB / 0.5667 GB, free: 97.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001111/0.8245, allocations: 0.6568 MB / 0.5674 GB, free: 96.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.8245, allocations: 0 / 0.5674 GB, free: 96.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002194/0.8267, allocations: 468.8 kB / 0.5678 GB, free: 96.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.002447/0.8291, allocations: 2.297 MB / 0.5701 GB, free: 95.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002596/0.8318, allocations: 1.251 MB / 0.5713 GB, free: 95.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.8318, allocations: 0 / 0.5713 GB, free: 95.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005353/0.8323, allocations: 347.4 kB / 0.5716 GB, free: 95.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.8339, allocations: 261 kB / 0.5719 GB, free: 95.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005302/0.8393, allocations: 2.275 MB / 0.5741 GB, free: 94.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.8404, allocations: 1.272 MB / 0.5753 GB, free: 93.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001253/0.8417, allocations: 220 kB / 0.5756 GB, free: 93.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008414/0.8425, allocations: 0.6269 MB / 0.5762 GB, free: 93.47 MB / 426.7 MB Notification: Performance of SimCode: time 1.352e-06/0.8425, allocations: 4 kB / 0.5762 GB, free: 93.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05258/0.8951, allocations: 26.25 MB / 0.6018 GB, free: 91.82 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/0.8953, allocations: 182 kB / 0.602 GB, free: 91.62 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/3.891, allocations: 6.969 kB / 0.602 GB, free: 91.62 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat