Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001501/0.001501, allocations: 186.3 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.916/1.916, 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.001123/0.001123, allocations: 97.53 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003921, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.327, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1885/0.5156, allocations: 115.7 MB / 490.3 MB, free: 12.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003439/0.516, allocations: 91.94 kB / 490.4 MB, free: 12.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5561/1.072, allocations: 76.95 MB / 0.5541 GB, free: 62.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.072, allocations: 0 / 0.5541 GB, free: 62.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003827/1.073, allocations: 79.92 kB / 0.5542 GB, free: 62.2 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01445/1.087, allocations: 3.552 MB / 0.5576 GB, free: 58.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/1.087, allocations: 16.03 kB / 0.5576 GB, free: 58.56 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001799/1.089, allocations: 447.3 kB / 0.5581 GB, free: 58.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004499/1.093, allocations: 0.6006 MB / 0.5587 GB, free: 57.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/1.105, allocations: 3.155 MB / 0.5617 GB, free: 54.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/1.105, allocations: 246.2 kB / 0.562 GB, free: 54.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00122/1.107, allocations: 311.9 kB / 0.5623 GB, free: 53.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01247/1.119, allocations: 4.117 MB / 0.5663 GB, free: 49.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001479/1.119, allocations: 7.938 kB / 0.5663 GB, free: 49.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007101/1.12, allocations: 132 kB / 0.5664 GB, free: 49.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001745/1.12, allocations: 146.1 kB / 0.5666 GB, free: 49.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/1.131, allocations: 3.358 MB / 0.5698 GB, free: 45.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03357/1.165, allocations: 13.81 MB / 0.5833 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008135/1.173, allocations: 5.941 MB / 0.5891 GB, free: 24.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009458/1.182, allocations: 3.24 MB / 0.5923 GB, free: 21.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/1.182, allocations: 55.86 kB / 0.5924 GB, free: 21.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 5.31e-06/1.182, allocations: 4 kB / 0.5924 GB, free: 21.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.02217/1.205, allocations: 6.78 MB / 0.599 GB, free: 14.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/1.205, allocations: 98.41 kB / 0.5991 GB, free: 14.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/1.209, allocations: 1.69 MB / 0.6007 GB, free: 12.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003436/1.209, allocations: 53.7 kB / 0.6008 GB, free: 12.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00102/1.21, allocations: 1.372 MB / 0.6021 GB, free: 11.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006591/1.211, allocations: 0.4891 MB / 0.6026 GB, free: 10.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/1.211, allocations: 36 kB / 0.6026 GB, free: 10.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/1.211, allocations: 382.8 kB / 0.603 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00207/1.213, allocations: 0.7651 MB / 0.6037 GB, free: 9.652 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002522/1.216, allocations: 1.272 MB / 0.605 GB, free: 8.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002517/1.218, allocations: 0.955 MB / 0.6059 GB, free: 7.203 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.675e-05/1.218, allocations: 4 kB / 0.6059 GB, free: 7.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007865/1.226, allocations: 2.68 MB / 0.6085 GB, free: 4.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002288/1.229, allocations: 6.177 MB / 0.6146 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.656e-05/1.229, allocations: 19.94 kB / 0.6146 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003586/1.232, allocations: 0.5194 MB / 0.6151 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004393/1.237, allocations: 379.4 kB / 0.6155 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01394/1.251, allocations: 7.4 MB / 0.6227 GB, free: 5.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002627/1.253, allocations: 103.9 kB / 0.6228 GB, free: 4.996 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/1.254, allocations: 75.98 kB / 0.6229 GB, free: 4.922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/1.254, allocations: 4 kB / 0.6229 GB, free: 4.918 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007068/1.261, allocations: 2.574 MB / 0.6254 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.644e-05/1.261, allocations: 24.23 kB / 0.6254 GB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001856/1.263, allocations: 0.507 MB / 0.6259 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002801/1.266, allocations: 375.4 kB / 0.6262 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/1.279, allocations: 7.452 MB / 0.6335 GB, free: 9.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/1.28, allocations: 91.8 kB / 0.6336 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000248/1.281, allocations: 76 kB / 0.6337 GB, free: 9.383 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (191): * Single equations (assignments): 187 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.003046/1.284, allocations: 1.071 MB / 0.6347 GB, free: 8.301 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007171/1.284, allocations: 205.5 kB / 0.6349 GB, free: 8.098 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007361/1.292, allocations: 2.541 MB / 0.6374 GB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.759e-05/1.292, allocations: 19.95 kB / 0.6374 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.292, allocations: 4 kB / 0.6374 GB, free: 5.469 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.044e-05/1.292, allocations: 7.969 kB / 0.6374 GB, free: 5.461 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.299/1.591, allocations: 5.45 MB / 0.6428 GB, free: 89.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.238e-05/1.591, allocations: 3.781 kB / 0.6428 GB, free: 89.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/1.593, allocations: 198.1 kB / 0.6429 GB, free: 89.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002584/1.595, allocations: 0.6515 MB / 0.6436 GB, free: 89.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000175/1.596, allocations: 33.33 kB / 0.6436 GB, free: 89.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01551/1.611, allocations: 11.53 MB / 0.6549 GB, free: 82.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/1.611, allocations: 5.312 kB / 0.6549 GB, free: 82.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008553/1.62, allocations: 3.817 MB / 0.6586 GB, free: 82.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001471/1.621, allocations: 484.4 kB / 0.6591 GB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004489/1.622, allocations: 33.12 kB / 0.6591 GB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/1.624, allocations: 86.23 kB / 0.6592 GB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004267/1.624, allocations: 120.7 kB / 0.6593 GB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/1.624, allocations: 40.09 kB / 0.6593 GB, free: 81.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002758/1.627, allocations: 1.299 MB / 0.6606 GB, free: 81.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.627, allocations: 0 / 0.6606 GB, free: 81.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004957/1.632, allocations: 1.11 MB / 0.6617 GB, free: 81.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (96): * Single equations (assignments): 91 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.009339/1.641, allocations: 5.23 MB / 0.6668 GB, free: 80.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009736/1.651, allocations: 4.236 MB / 0.6709 GB, free: 79.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.651, allocations: 3.844 kB / 0.6709 GB, free: 79.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004212/1.655, allocations: 1.812 MB / 0.6727 GB, free: 78.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004758/1.66, allocations: 0.595 MB / 0.6733 GB, free: 78.53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04663/1.707, allocations: 28.01 MB / 0.7006 GB, free: 60.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003123/1.71, allocations: 2.345 MB / 0.7029 GB, free: 59.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00246/1.712, allocations: 1.161 MB / 0.7041 GB, free: 58.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/1.712, allocations: 3.172 kB / 0.7041 GB, free: 58.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.079/5.792, allocations: 122.5 MB / 0.8237 GB, free: 120.7 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat