Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001032/0.001033, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007788/0.0007788, allocations: 95.17 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.237e-05/2.247e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1147, allocations: 51.47 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3546/0.4694, allocations: 117.9 MB / 0.5012 GB, free: 7.383 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.4697, allocations: 86.77 kB / 0.5012 GB, free: 7.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1097/0.5794, allocations: 41.82 MB / 0.5421 GB, free: 2.418 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5795, allocations: 0 / 0.5421 GB, free: 2.418 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001679/0.5796, allocations: 40 kB / 0.5421 GB, free: 2.379 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 413 * Number of variables: 413 Notification: Performance of Generate backend data structure: time 0.004064/0.5837, allocations: 1.69 MB / 0.5438 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.5838, allocations: 12.03 kB / 0.5438 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.585, allocations: 257.4 kB / 0.544 GB, free: 384 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002854/0.5879, allocations: 1.15 MB / 0.5452 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.82e-05/0.588, allocations: 52 kB / 0.5452 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003567/0.5883, allocations: 103.9 kB / 0.5453 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002177/0.5905, allocations: 0.8657 MB / 0.5461 GB, free: 14.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/0.5934, allocations: 1.259 MB / 0.5474 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.834e-05/0.5935, allocations: 4 kB / 0.5474 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.5936, allocations: 4 kB / 0.5474 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.615e-05/0.5937, allocations: 40 kB / 0.5474 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/0.6038, allocations: 6.361 MB / 0.5536 GB, free: 6.129 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.6053, allocations: 0.8569 MB / 0.5545 GB, free: 5.199 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003647/0.6057, allocations: 234.5 kB / 0.5547 GB, free: 4.969 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-05/0.6058, allocations: 12.55 kB / 0.5547 GB, free: 4.957 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.6058, allocations: 43.06 kB / 0.5547 GB, free: 4.906 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 2.545e-06/0.6058, allocations: 0 / 0.5547 GB, free: 4.906 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.002827/0.6087, allocations: 1.43 MB / 0.5561 GB, free: 3.418 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.6087, allocations: 89.67 kB / 0.5562 GB, free: 3.312 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/0.6101, allocations: 0.8939 MB / 0.5571 GB, free: 2.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.818e-05/0.6102, allocations: 25.7 kB / 0.5571 GB, free: 2.379 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006381/0.6108, allocations: 0.8988 MB / 0.558 GB, free: 1.469 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.611, allocations: 228.7 kB / 0.5582 GB, free: 1.242 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.6111, allocations: 0 / 0.5582 GB, free: 1.242 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.6112, allocations: 345.9 kB / 0.5586 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003717/0.6116, allocations: 218.6 kB / 0.5588 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006415/0.6122, allocations: 0.6203 MB / 0.5594 GB, free: 15.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005228/0.6128, allocations: 336.3 kB / 0.5597 GB, free: 15.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.6128, allocations: 4 kB / 0.5597 GB, free: 15.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001509/0.6143, allocations: 0.9144 MB / 0.5606 GB, free: 14.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002117/0.6164, allocations: 5.328 MB / 0.5658 GB, free: 8.887 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.6165, allocations: 16 kB / 0.5658 GB, free: 8.871 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.6167, allocations: 36.86 kB / 0.5658 GB, free: 8.832 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009669/0.6176, allocations: 275.6 kB / 0.5661 GB, free: 8.562 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.6187, allocations: 1.259 MB / 0.5673 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008592/0.6196, allocations: 51.83 kB / 0.5674 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-05/0.6197, allocations: 48 kB / 0.5674 GB, free: 7.098 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.6197, allocations: 4 kB / 0.5674 GB, free: 7.094 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001291/0.621, allocations: 0.7457 MB / 0.5682 GB, free: 6.344 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.621, allocations: 12 kB / 0.5682 GB, free: 6.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-05/0.6211, allocations: 40.86 kB / 0.5682 GB, free: 6.289 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008298/0.622, allocations: 260.1 kB / 0.5685 GB, free: 6.035 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009117/0.6229, allocations: 1.241 MB / 0.5697 GB, free: 4.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006976/0.6236, allocations: 35.98 kB / 0.5697 GB, free: 4.645 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.389e-05/0.6237, allocations: 48 kB / 0.5697 GB, free: 4.598 MB / 442.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.0002351/0.6239, allocations: 148.5 kB / 0.5699 GB, free: 4.445 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000909/0.6248, allocations: 0.5224 MB / 0.5704 GB, free: 3.914 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.625, allocations: 122.5 kB / 0.5705 GB, free: 3.793 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.6261, allocations: 0.5361 MB / 0.571 GB, free: 3.238 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.6261, allocations: 8 kB / 0.571 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.6261, allocations: 0 / 0.571 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.6261, allocations: 3.984 kB / 0.5711 GB, free: 3.227 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003058/0.6292, allocations: 1.739 MB / 0.5728 GB, free: 1.426 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.6292, allocations: 4.219 kB / 0.5728 GB, free: 1.422 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006611/0.6299, allocations: 143.9 kB / 0.5729 GB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.63, allocations: 28.78 kB / 0.5729 GB, free: 1.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.6301, allocations: 8 kB / 0.5729 GB, free: 1.242 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2717/0.9017, allocations: 1.22 MB / 0.5741 GB, free: 93.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/0.9018, allocations: 3.438 kB / 0.5741 GB, free: 93.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.9037, allocations: 0.999 MB / 0.5751 GB, free: 93.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005522/0.9043, allocations: 245.9 kB / 0.5753 GB, free: 92.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.9044, allocations: 11.31 kB / 0.5753 GB, free: 92.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006205/0.9051, allocations: 45.38 kB / 0.5754 GB, free: 92.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.9052, allocations: 52.03 kB / 0.5754 GB, free: 92.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.678e-05/0.9052, allocations: 17.17 kB / 0.5755 GB, free: 92.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001049/0.9063, allocations: 0.6563 MB / 0.5761 GB, free: 92.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.9063, allocations: 0 / 0.5761 GB, free: 92.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002035/0.9084, allocations: 460 kB / 0.5765 GB, free: 92.88 MB / 442.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.00196/0.9103, allocations: 2.28 MB / 0.5788 GB, free: 91.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.9123, allocations: 1.245 MB / 0.58 GB, free: 91.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.9123, allocations: 6.625 kB / 0.58 GB, free: 91.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.9127, allocations: 345.2 kB / 0.5803 GB, free: 91.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.9142, allocations: 267.2 kB / 0.5806 GB, free: 91.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.9191, allocations: 2.26 MB / 0.5828 GB, free: 90.49 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007737/0.9199, allocations: 1.266 MB / 0.584 GB, free: 89.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001162/0.9211, allocations: 217.1 kB / 0.5842 GB, free: 89.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007243/0.9218, allocations: 0.62 MB / 0.5848 GB, free: 89.76 MB / 442.7 MB Notification: Performance of SimCode: time 1.312e-06/0.9219, allocations: 0 / 0.5848 GB, free: 89.76 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06786/0.9897, allocations: 26.06 MB / 0.6103 GB, free: 88.22 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/0.9901, allocations: 177.5 kB / 0.6104 GB, free: 88.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.014/4.004, allocations: 1.375 kB / 0.6104 GB, free: 88.03 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat