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.001518/0.001518, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.255/2.255, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001161/0.00116, allocations: 93.73 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.467e-05, allocations: 7.984 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5051/0.6111, allocations: 110.1 MB / 479.3 MB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003464/0.6115, allocations: 86.89 kB / 479.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2415/0.853, allocations: 55.01 MB / 0.5218 GB, free: 9.414 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.8531, allocations: 0 / 0.5218 GB, free: 9.414 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000402/0.8535, allocations: 67.94 kB / 0.5219 GB, free: 9.348 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.01108/0.8646, allocations: 2.648 MB / 0.5245 GB, free: 6.637 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.8647, allocations: 8.031 kB / 0.5245 GB, free: 6.629 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001572/0.8663, allocations: 362.6 kB / 0.5249 GB, free: 6.266 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002053/0.8684, allocations: 360 kB / 0.5252 GB, free: 5.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007551/0.876, allocations: 1.929 MB / 0.5271 GB, free: 3.926 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/0.8763, allocations: 189.7 kB / 0.5273 GB, free: 3.738 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001144/0.8775, allocations: 259.9 kB / 0.5275 GB, free: 3.484 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3112/1.189, allocations: 3.32 MB / 0.5307 GB, free: 95.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002406/1.189, allocations: 10.66 kB / 0.5308 GB, free: 95.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001138/1.19, allocations: 107.7 kB / 0.5309 GB, free: 95.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002356/1.19, allocations: 111.8 kB / 0.531 GB, free: 95.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/1.201, allocations: 2.703 MB / 0.5336 GB, free: 95.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03394/1.235, allocations: 10.92 MB / 0.5443 GB, free: 92.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005159/1.24, allocations: 2.423 MB / 0.5466 GB, free: 91.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002919/1.243, allocations: 1.056 MB / 0.5477 GB, free: 91.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005178/1.243, allocations: 139.3 kB / 0.5478 GB, free: 91.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/1.243, allocations: 47.16 kB / 0.5478 GB, free: 91.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 4.218e-06/1.243, allocations: 0 / 0.5478 GB, free: 91.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.01922/1.263, allocations: 5.497 MB / 0.5532 GB, free: 90.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/1.263, allocations: 93.55 kB / 0.5533 GB, free: 90.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003725/1.266, allocations: 1.569 MB / 0.5548 GB, free: 90.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003987/1.267, allocations: 53.39 kB / 0.5549 GB, free: 90.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009496/1.268, allocations: 1.154 MB / 0.556 GB, free: 90.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000781/1.269, allocations: 0.4991 MB / 0.5565 GB, free: 89.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/1.269, allocations: 38.59 kB / 0.5565 GB, free: 89.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/1.269, allocations: 381.2 kB / 0.5569 GB, free: 89.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/1.271, allocations: 0.8168 MB / 0.5577 GB, free: 89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002449/1.274, allocations: 1.278 MB / 0.5589 GB, free: 88.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/1.276, allocations: 1.011 MB / 0.5599 GB, free: 87.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.451e-05/1.276, allocations: 3.969 kB / 0.5599 GB, free: 87.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007089/1.284, allocations: 2.676 MB / 0.5626 GB, free: 86.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00123/1.285, allocations: 5.401 MB / 0.5678 GB, free: 81.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.046e-05/1.285, allocations: 21.02 kB / 0.5678 GB, free: 81.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002679/1.288, allocations: 0.6611 MB / 0.5685 GB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002781/1.29, allocations: 372.8 kB / 0.5688 GB, free: 80.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/1.303, allocations: 8.262 MB / 0.5769 GB, free: 75.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/1.306, allocations: 117.2 kB / 0.577 GB, free: 75.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004037/1.306, allocations: 73.8 kB / 0.5771 GB, free: 75.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/1.306, allocations: 3.719 kB / 0.5771 GB, free: 75.16 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006314/1.312, allocations: 2.604 MB / 0.5796 GB, free: 74.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-05/1.312, allocations: 14.09 kB / 0.5797 GB, free: 74.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002169/1.315, allocations: 0.6604 MB / 0.5803 GB, free: 74.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/1.317, allocations: 366 kB / 0.5807 GB, free: 74.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/1.33, allocations: 8.332 MB / 0.5888 GB, free: 68.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/1.331, allocations: 106.2 kB / 0.5889 GB, free: 68.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/1.332, allocations: 67.62 kB / 0.589 GB, free: 68.22 MB / 410.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 () * 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.0005389/1.332, allocations: 216.8 kB / 0.5892 GB, free: 68.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007093/1.333, allocations: 199.8 kB / 0.5894 GB, free: 67.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006589/1.34, allocations: 2.561 MB / 0.5919 GB, free: 66.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.889e-05/1.34, allocations: 21.69 kB / 0.5919 GB, free: 66.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/1.34, allocations: 3.812 kB / 0.5919 GB, free: 66.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.153e-05/1.34, allocations: 10.56 kB / 0.5919 GB, free: 66.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01425/1.354, allocations: 5.351 MB / 0.5971 GB, free: 64.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/1.354, allocations: 7.531 kB / 0.5971 GB, free: 64.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/1.356, allocations: 232.3 kB / 0.5973 GB, free: 64.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002822/1.359, allocations: 0.6925 MB / 0.598 GB, free: 64.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003155/1.359, allocations: 32.39 kB / 0.598 GB, free: 64.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01389/1.373, allocations: 9.764 MB / 0.6076 GB, free: 57.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.373, allocations: 3.875 kB / 0.6076 GB, free: 57.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008345/1.382, allocations: 3.864 MB / 0.6114 GB, free: 55.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/1.383, allocations: 482.3 kB / 0.6118 GB, free: 55.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005232/1.384, allocations: 35.92 kB / 0.6119 GB, free: 55.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001893/1.386, allocations: 102.2 kB / 0.612 GB, free: 55.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004728/1.386, allocations: 111.9 kB / 0.6121 GB, free: 55.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/1.386, allocations: 43.47 kB / 0.6121 GB, free: 55.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002573/1.389, allocations: 1.207 MB / 0.6133 GB, free: 53.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.92e-07/1.389, allocations: 0 / 0.6133 GB, free: 53.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005325/1.394, allocations: 1.034 MB / 0.6143 GB, free: 52.94 MB / 410.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 () * 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.009638/1.404, allocations: 5.308 MB / 0.6195 GB, free: 48.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009933/1.414, allocations: 4.445 MB / 0.6238 GB, free: 43.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/1.414, allocations: 1.875 kB / 0.6238 GB, free: 43.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003462/1.418, allocations: 1.703 MB / 0.6255 GB, free: 42.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004401/1.422, allocations: 0.5657 MB / 0.626 GB, free: 41.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/1.44, allocations: 5.568 MB / 0.6315 GB, free: 36.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002722/1.442, allocations: 2.129 MB / 0.6335 GB, free: 35.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00227/1.445, allocations: 0.9952 MB / 0.6345 GB, free: 34.31 MB / 410.7 MB Notification: Performance of SimCode: time 3.266e-06/1.445, allocations: 0 / 0.6345 GB, free: 34.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.516/5.961, allocations: 96.97 MB / 0.7292 GB, free: 96.41 MB / 426.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