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.001151/0.001151, allocations: 196.9 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.404/1.404, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 85.22 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.618e-05/4.645e-05, allocations: 4 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1202, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.5259, allocations: 118.6 MB / 0.5085 GB, free: 3.199 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.5263, allocations: 85.55 kB / 0.5086 GB, free: 3.156 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1072/0.6336, allocations: 42.63 MB / 0.5502 GB, free: 9.738 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.6336, allocations: 0 / 0.5502 GB, free: 9.738 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001151/0.6337, allocations: 45.53 kB / 0.5503 GB, free: 9.695 MB / 426.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.003157/0.6369, allocations: 1.69 MB / 0.5519 GB, free: 7.961 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.637, allocations: 8.031 kB / 0.5519 GB, free: 7.953 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002979/0.6373, allocations: 232.4 kB / 0.5522 GB, free: 7.715 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007983/0.6381, allocations: 273.4 kB / 0.5524 GB, free: 7.445 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002217/0.6403, allocations: 1.142 MB / 0.5535 GB, free: 6.246 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.6404, allocations: 123.2 kB / 0.5537 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002169/0.6406, allocations: 167.9 kB / 0.5538 GB, free: 5.961 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.6433, allocations: 1.488 MB / 0.5553 GB, free: 4.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.18e-05/0.6433, allocations: 7.938 kB / 0.5553 GB, free: 4.402 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.6435, allocations: 68 kB / 0.5553 GB, free: 4.336 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/0.6435, allocations: 40 kB / 0.5554 GB, free: 4.297 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.6454, allocations: 0.9608 MB / 0.5563 GB, free: 3.332 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.6556, allocations: 6.664 MB / 0.5628 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.6572, allocations: 0.8821 MB / 0.5637 GB, free: 11.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.6577, allocations: 255.5 kB / 0.5639 GB, free: 11.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.834e-05/0.6577, allocations: 8.562 kB / 0.5639 GB, free: 11.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.6578, allocations: 39.12 kB / 0.564 GB, free: 11.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=61): time 5.54e-06/0.6578, allocations: 0 / 0.564 GB, free: 11.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=64): time 0.002773/0.6606, allocations: 1.538 MB / 0.5655 GB, free: 9.512 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.6606, allocations: 85.67 kB / 0.5656 GB, free: 9.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001524/0.6622, allocations: 1.049 MB / 0.5666 GB, free: 8.348 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.788e-05/0.6622, allocations: 41.7 kB / 0.5666 GB, free: 8.301 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006672/0.6629, allocations: 0.8809 MB / 0.5675 GB, free: 7.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.6631, allocations: 236.6 kB / 0.5677 GB, free: 7.176 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-05/0.6632, allocations: 28 kB / 0.5677 GB, free: 7.148 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.6633, allocations: 349.9 kB / 0.5681 GB, free: 6.801 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004414/0.6638, allocations: 238.6 kB / 0.5683 GB, free: 6.566 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007883/0.6646, allocations: 0.6458 MB / 0.5689 GB, free: 5.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006068/0.6652, allocations: 349.9 kB / 0.5693 GB, free: 5.391 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.6652, allocations: 4 kB / 0.5693 GB, free: 5.387 MB / 442.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001751/0.6669, allocations: 1.058 MB / 0.5703 GB, free: 4.316 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2583/0.9252, allocations: 5.362 MB / 0.5755 GB, free: 92.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.898e-05/0.9253, allocations: 12.97 kB / 0.5755 GB, free: 92.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002472/0.9256, allocations: 39.84 kB / 0.5756 GB, free: 92.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.9266, allocations: 277.5 kB / 0.5759 GB, free: 92.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007692/0.9274, allocations: 1.292 MB / 0.5771 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.9285, allocations: 71.78 kB / 0.5772 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.35e-05/0.9285, allocations: 53.97 kB / 0.5772 GB, free: 91.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.706e-06/0.9285, allocations: 3.781 kB / 0.5772 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001317/0.9299, allocations: 0.8861 MB / 0.5781 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.9299, allocations: 13.41 kB / 0.5781 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.043e-05/0.93, allocations: 45.42 kB / 0.5782 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007333/0.9307, allocations: 258.6 kB / 0.5784 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005929/0.9313, allocations: 1.294 MB / 0.5797 GB, free: 90.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008132/0.9322, allocations: 52.08 kB / 0.5797 GB, free: 90.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.793e-05/0.9322, allocations: 54.84 kB / 0.5798 GB, free: 90.37 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.0001728/0.9324, allocations: 177.8 kB / 0.5799 GB, free: 90.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.9326, allocations: 135.5 kB / 0.5801 GB, free: 90.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.9336, allocations: 0.5871 MB / 0.5806 GB, free: 90.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.9337, allocations: 6.562 kB / 0.5806 GB, free: 90.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.9337, allocations: 6.422 kB / 0.5807 GB, free: 90.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.9337, allocations: 3.375 kB / 0.5807 GB, free: 90.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.9364, allocations: 1.994 MB / 0.5826 GB, free: 89.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.9364, allocations: 4.094 kB / 0.5826 GB, free: 89.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.937, allocations: 141.2 kB / 0.5827 GB, free: 89.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.873e-05/0.9371, allocations: 23.88 kB / 0.5828 GB, free: 89.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.9371, allocations: 14.59 kB / 0.5828 GB, free: 89.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005746/0.9377, allocations: 1.272 MB / 0.584 GB, free: 88.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.9377, allocations: 9.609 kB / 0.584 GB, free: 88.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.9388, allocations: 1.053 MB / 0.5851 GB, free: 88.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/0.9391, allocations: 267 kB / 0.5853 GB, free: 88.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.9393, allocations: 21.14 kB / 0.5853 GB, free: 88.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.9398, allocations: 60.06 kB / 0.5854 GB, free: 88.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.316e-05/0.9399, allocations: 43.5 kB / 0.5854 GB, free: 88.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.94, allocations: 17.66 kB / 0.5854 GB, free: 88.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00103/0.941, allocations: 0.787 MB / 0.5862 GB, free: 87.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.941, allocations: 2.938 kB / 0.5862 GB, free: 87.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001612/0.9426, allocations: 0.5441 MB / 0.5868 GB, free: 87.96 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.001868/0.9445, allocations: 2.367 MB / 0.5891 GB, free: 86.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.9465, allocations: 1.361 MB / 0.5904 GB, free: 86.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.9465, allocations: 0 / 0.5904 GB, free: 86.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004171/0.9469, allocations: 367.3 kB / 0.5907 GB, free: 86.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.9482, allocations: 306.2 kB / 0.591 GB, free: 86.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004298/0.9525, allocations: 2.34 MB / 0.5933 GB, free: 85.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006022/0.9531, allocations: 1.267 MB / 0.5946 GB, free: 84.73 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009829/0.9541, allocations: 230.5 kB / 0.5948 GB, free: 84.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006636/0.9548, allocations: 0.6245 MB / 0.5954 GB, free: 84.68 MB / 442.7 MB Notification: Performance of SimCode: time 2.134e-06/0.9548, allocations: 0 / 0.5954 GB, free: 84.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05823/1.013, allocations: 31.65 MB / 0.6263 GB, free: 82.73 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/1.013, allocations: 208.9 kB / 0.6265 GB, free: 82.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.076/4.089, allocations: 0 / 0.6265 GB, free: 82.5 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