Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00145/0.00145, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.954/1.954, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001179/0.001178, allocations: 91.38 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.0003949, allocations: 12 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3327, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.513, allocations: 110.2 MB / 484.8 MB, free: 2.395 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003428/0.5134, allocations: 95.94 kB / 484.9 MB, free: 2.301 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4846/0.998, allocations: 54.92 MB / 0.5272 GB, free: 89.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.998, allocations: 0 / 0.5272 GB, free: 89.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003157/0.9984, allocations: 79.86 kB / 0.5272 GB, free: 89.14 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.01063/1.009, allocations: 2.962 MB / 0.5301 GB, free: 86.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/1.009, allocations: 8.031 kB / 0.5301 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001494/1.011, allocations: 366.6 kB / 0.5305 GB, free: 85.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/1.012, allocations: 360.9 kB / 0.5308 GB, free: 85.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006585/1.019, allocations: 1.953 MB / 0.5328 GB, free: 83.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/1.019, allocations: 185 kB / 0.5329 GB, free: 83.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001133/1.02, allocations: 259.8 kB / 0.5332 GB, free: 82.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009689/1.03, allocations: 3.379 MB / 0.5365 GB, free: 79.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001309/1.03, allocations: 11.94 kB / 0.5365 GB, free: 79.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004247/1.03, allocations: 108 kB / 0.5366 GB, free: 79.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/1.031, allocations: 120.8 kB / 0.5367 GB, free: 79.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008814/1.039, allocations: 2.779 MB / 0.5394 GB, free: 76.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02761/1.067, allocations: 10.92 MB / 0.5501 GB, free: 65.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004668/1.072, allocations: 2.482 MB / 0.5525 GB, free: 62.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004858/1.072, allocations: 138.4 kB / 0.5526 GB, free: 62.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/1.072, allocations: 51.77 kB / 0.5527 GB, free: 62.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.379e-06/1.072, allocations: 4 kB / 0.5527 GB, free: 62.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02545/1.098, allocations: 7.294 MB / 0.5598 GB, free: 54.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/1.098, allocations: 94.42 kB / 0.5599 GB, free: 54.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003496/1.101, allocations: 1.591 MB / 0.5615 GB, free: 53.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004102/1.102, allocations: 49.69 kB / 0.5615 GB, free: 53.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008255/1.103, allocations: 1.151 MB / 0.5626 GB, free: 51.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006219/1.103, allocations: 0.4967 MB / 0.5631 GB, free: 51.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/1.104, allocations: 40 kB / 0.5632 GB, free: 51.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/1.104, allocations: 378.7 kB / 0.5635 GB, free: 51.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/1.106, allocations: 0.8588 MB / 0.5644 GB, free: 50.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00238/1.108, allocations: 1.31 MB / 0.5656 GB, free: 48.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/1.111, allocations: 1.041 MB / 0.5666 GB, free: 47.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/1.111, allocations: 4 kB / 0.5667 GB, free: 47.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.0111/1.122, allocations: 2.748 MB / 0.5693 GB, free: 44.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001671/1.124, allocations: 5.398 MB / 0.5746 GB, free: 39.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.347e-05/1.124, allocations: 12 kB / 0.5746 GB, free: 39.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004002/1.128, allocations: 0.6638 MB / 0.5753 GB, free: 38.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/1.131, allocations: 375.4 kB / 0.5756 GB, free: 37.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/1.144, allocations: 8.504 MB / 0.5839 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/1.146, allocations: 111.8 kB / 0.584 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/1.147, allocations: 68 kB / 0.5841 GB, free: 28.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/1.147, allocations: 4.094 kB / 0.5841 GB, free: 28.89 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006356/1.153, allocations: 2.654 MB / 0.5867 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.457e-05/1.153, allocations: 16.06 kB / 0.5867 GB, free: 26.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/1.155, allocations: 0.6671 MB / 0.5874 GB, free: 25.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002699/1.158, allocations: 371.4 kB / 0.5877 GB, free: 25.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/1.171, allocations: 8.541 MB / 0.5961 GB, free: 16.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/1.173, allocations: 100 kB / 0.5962 GB, free: 16.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/1.173, allocations: 76 kB / 0.5962 GB, free: 16.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002268/1.175, allocations: 0.93 MB / 0.5971 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006567/1.176, allocations: 201.6 kB / 0.5973 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006586/1.183, allocations: 2.59 MB / 0.5999 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/1.183, allocations: 12 kB / 0.5999 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/1.183, allocations: 4 kB / 0.5999 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/1.183, allocations: 7.969 kB / 0.5999 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/1.196, allocations: 5.41 MB / 0.6052 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/1.196, allocations: 4.031 kB / 0.6052 GB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/1.198, allocations: 239.6 kB / 0.6054 GB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002706/1.201, allocations: 0.6908 MB / 0.6061 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/1.201, allocations: 32 kB / 0.6061 GB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01595/1.217, allocations: 10.03 MB / 0.6159 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/1.217, allocations: 8.016 kB / 0.6159 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0106/1.228, allocations: 3.955 MB / 0.6198 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001998/1.23, allocations: 474.5 kB / 0.6202 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007957/1.23, allocations: 32.23 kB / 0.6202 GB, free: 6.621 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002434/1.233, allocations: 99.89 kB / 0.6203 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005492/1.233, allocations: 125.1 kB / 0.6205 GB, free: 6.402 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.234, allocations: 39.98 kB / 0.6205 GB, free: 6.363 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003125/1.237, allocations: 1.225 MB / 0.6217 GB, free: 5.148 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.006e-06/1.237, allocations: 0 / 0.6217 GB, free: 5.148 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006118/1.243, allocations: 1.043 MB / 0.6227 GB, free: 4.105 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01232/1.255, allocations: 5.389 MB / 0.628 GB, free: 14.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01254/1.268, allocations: 4.567 MB / 0.6324 GB, free: 9.934 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.268, allocations: 0 / 0.6324 GB, free: 9.934 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004718/1.273, allocations: 1.752 MB / 0.6341 GB, free: 8.133 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004928/1.278, allocations: 0.5752 MB / 0.6347 GB, free: 7.562 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3324/1.61, allocations: 26.2 MB / 0.6603 GB, free: 97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00268/1.613, allocations: 2.125 MB / 0.6624 GB, free: 96.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/1.615, allocations: 0.9966 MB / 0.6633 GB, free: 96.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.333e-06/1.615, allocations: 1.094 kB / 0.6633 GB, free: 96.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.092/5.707, allocations: 96.89 MB / 0.758 GB, free: 21.7 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat