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.002353/0.002353, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.00111, allocations: 93.64 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.588e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3744, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2081/0.5826, allocations: 115 MB / 477.4 MB, free: 3.195 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005507/0.5832, allocations: 89.34 kB / 477.5 MB, free: 3.109 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5786/1.162, allocations: 75.95 MB / 0.5405 GB, free: 94.25 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.004e-06/1.162, allocations: 0 / 0.5405 GB, free: 94.25 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003567/1.162, allocations: 83.31 kB / 0.5405 GB, free: 94.23 MB / 395.1 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.01278/1.175, allocations: 3.197 MB / 0.5437 GB, free: 92.62 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/1.175, allocations: 9.781 kB / 0.5437 GB, free: 92.62 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004701/1.18, allocations: 0.5943 MB / 0.5443 GB, free: 92.39 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/1.192, allocations: 3.133 MB / 0.5473 GB, free: 90.55 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/1.192, allocations: 101.6 kB / 0.5474 GB, free: 90.55 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001266/1.193, allocations: 190.3 kB / 0.5476 GB, free: 90.54 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009846/1.203, allocations: 3.072 MB / 0.5506 GB, free: 88.99 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01211/1.215, allocations: 3.596 MB / 0.5541 GB, free: 86.8 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001543/1.216, allocations: 7.938 kB / 0.5541 GB, free: 86.8 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007968/1.216, allocations: 3.625 kB / 0.5541 GB, free: 86.8 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002191/1.217, allocations: 143.1 kB / 0.5542 GB, free: 86.77 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04353/1.26, allocations: 13.21 MB / 0.5671 GB, free: 73.79 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007481/1.268, allocations: 5.784 MB / 0.5728 GB, free: 67.3 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/1.271, allocations: 1.281 MB / 0.574 GB, free: 66.03 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009145/1.28, allocations: 3.074 MB / 0.5771 GB, free: 62.91 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/1.28, allocations: 43.88 kB / 0.5771 GB, free: 62.86 MB / 395.1 MB Notification: Performance of pre-optimization done (n=137): time 4.99e-06/1.28, allocations: 0 / 0.5771 GB, free: 62.86 MB / 395.1 MB Notification: Performance of matching and sorting (n=141): time 0.0123/1.293, allocations: 4.498 MB / 0.5815 GB, free: 58.26 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/1.293, allocations: 94.42 kB / 0.5816 GB, free: 58.15 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/1.296, allocations: 1.401 MB / 0.5829 GB, free: 56.75 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003205/1.296, allocations: 29.7 kB / 0.583 GB, free: 56.72 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009154/1.297, allocations: 1.403 MB / 0.5843 GB, free: 55.3 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005617/1.297, allocations: 469.1 kB / 0.5848 GB, free: 54.84 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/1.298, allocations: 0 / 0.5848 GB, free: 54.84 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/1.298, allocations: 374.8 kB / 0.5851 GB, free: 54.46 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001523/1.299, allocations: 0.6833 MB / 0.5858 GB, free: 53.78 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/1.301, allocations: 1.2 MB / 0.587 GB, free: 52.35 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002501/1.304, allocations: 0.9469 MB / 0.5879 GB, free: 51.41 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/1.304, allocations: 8 kB / 0.5879 GB, free: 51.4 MB / 395.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006157/1.31, allocations: 2.431 MB / 0.5903 GB, free: 48.93 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001396/1.311, allocations: 6.357 MB / 0.5965 GB, free: 42.07 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.023e-05/1.311, allocations: 16 kB / 0.5965 GB, free: 42.05 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001936/1.313, allocations: 0.5223 MB / 0.597 GB, free: 41.52 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002693/1.316, allocations: 367.4 kB / 0.5974 GB, free: 41.16 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/1.329, allocations: 6.985 MB / 0.6042 GB, free: 33.83 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003847/1.333, allocations: 59.83 kB / 0.6043 GB, free: 33.77 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006736/1.334, allocations: 76.12 kB / 0.6043 GB, free: 33.7 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/1.334, allocations: 4 kB / 0.6043 GB, free: 33.69 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01542/1.349, allocations: 2.332 MB / 0.6066 GB, free: 31.33 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001105/1.349, allocations: 16.38 kB / 0.6066 GB, free: 31.31 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004002/1.353, allocations: 0.4954 MB / 0.6071 GB, free: 30.8 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/1.356, allocations: 367.4 kB / 0.6075 GB, free: 30.45 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/1.375, allocations: 7.035 MB / 0.6143 GB, free: 23.07 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/1.378, allocations: 47.94 kB / 0.6144 GB, free: 23.02 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006563/1.379, allocations: 72 kB / 0.6144 GB, free: 22.95 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (187): * Single equations (assignments): 183 * 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.0009842/1.38, allocations: 163.4 kB / 0.6146 GB, free: 22.79 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008871/1.389, allocations: 2.236 MB / 0.6168 GB, free: 20.5 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007106/1.39, allocations: 189.7 kB / 0.617 GB, free: 20.31 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006037/1.396, allocations: 2.359 MB / 0.6193 GB, free: 17.88 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.166e-05/1.396, allocations: 16 kB / 0.6193 GB, free: 17.87 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/1.396, allocations: 4 kB / 0.6193 GB, free: 17.86 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-05/1.396, allocations: 7.969 kB / 0.6193 GB, free: 17.86 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/1.408, allocations: 4.814 MB / 0.624 GB, free: 12.94 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-05/1.408, allocations: 4 kB / 0.624 GB, free: 12.94 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/1.41, allocations: 180 kB / 0.6242 GB, free: 12.76 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/1.413, allocations: 0.6369 MB / 0.6248 GB, free: 12.11 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002504/1.413, allocations: 15.98 kB / 0.6248 GB, free: 12.09 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01434/1.427, allocations: 10.88 MB / 0.6354 GB, free: 0.6445 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.767e-06/1.427, allocations: 4.031 kB / 0.6354 GB, free: 0.6406 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009283/1.437, allocations: 3.58 MB / 0.6389 GB, free: 12.93 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/1.439, allocations: 450.6 kB / 0.6394 GB, free: 12.47 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006599/1.439, allocations: 4 kB / 0.6394 GB, free: 12.46 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002111/1.441, allocations: 55.92 kB / 0.6394 GB, free: 12.41 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005593/1.442, allocations: 121.1 kB / 0.6395 GB, free: 12.29 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/1.442, allocations: 36 kB / 0.6396 GB, free: 12.25 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.002902/1.445, allocations: 1.052 MB / 0.6406 GB, free: 11.21 MB / 411.1 MB Notification: Performance of sort global known variables: time 3.386e-06/1.445, allocations: 0 / 0.6406 GB, free: 11.21 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006584/1.452, allocations: 0.9803 MB / 0.6416 GB, free: 10.23 MB / 411.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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.01083/1.463, allocations: 4.982 MB / 0.6464 GB, free: 5.148 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01006/1.473, allocations: 3.859 MB / 0.6502 GB, free: 1.188 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/1.473, allocations: 0 / 0.6502 GB, free: 1.188 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2939/1.767, allocations: 1.676 MB / 0.6518 GB, free: 99.75 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004357/1.771, allocations: 497.2 kB / 0.6523 GB, free: 99.74 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01953/1.791, allocations: 5.304 MB / 0.6575 GB, free: 98.66 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00482/1.795, allocations: 2.338 MB / 0.6598 GB, free: 97.91 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003051/1.799, allocations: 1.158 MB / 0.6609 GB, free: 97.9 MB / 411.1 MB Notification: Performance of SimCode: time 1.432e-06/1.799, allocations: 1.438 kB / 0.6609 GB, free: 97.9 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.461/6.26, allocations: 120.6 MB / 0.7787 GB, free: 10.06 MB / 411.1 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