Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009458/0.0009458, allocations: 173 kB / 14.1 MB, free: 1.223 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.514/1.514, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008643/0.0008641, allocations: 90.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.247e-05, allocations: 4 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.091, allocations: 47.57 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.342/0.433, allocations: 110.1 MB / 480.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.4334, allocations: 85.88 kB / 480.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.149/0.5825, allocations: 55.02 MB / 0.5228 GB, free: 9.188 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.5825, allocations: 4 kB / 0.5228 GB, free: 9.184 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003312/0.5828, allocations: 67.94 kB / 0.5228 GB, free: 9.117 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.007855/0.5907, allocations: 2.644 MB / 0.5254 GB, free: 6.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.5908, allocations: 8.031 kB / 0.5254 GB, free: 6.402 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001388/0.5922, allocations: 370.6 kB / 0.5258 GB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001861/0.5941, allocations: 352 kB / 0.5261 GB, free: 5.684 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005479/0.5995, allocations: 1.941 MB / 0.528 GB, free: 3.688 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.5998, allocations: 189.7 kB / 0.5282 GB, free: 3.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008457/0.6006, allocations: 244 kB / 0.5284 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2011/0.8018, allocations: 3.332 MB / 0.5317 GB, free: 95.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.8019, allocations: 6.469 kB / 0.5317 GB, free: 95.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003988/0.8023, allocations: 107.1 kB / 0.5318 GB, free: 95.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000168/0.8025, allocations: 112 kB / 0.5319 GB, free: 95.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005896/0.8084, allocations: 2.703 MB / 0.5345 GB, free: 95.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01638/0.8248, allocations: 10.92 MB / 0.5452 GB, free: 92.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.8274, allocations: 2.424 MB / 0.5476 GB, free: 91.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.8288, allocations: 1.056 MB / 0.5486 GB, free: 91.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002901/0.8291, allocations: 135.3 kB / 0.5487 GB, free: 91.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.8292, allocations: 52.25 kB / 0.5488 GB, free: 91.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 3.637e-06/0.8292, allocations: 3.375 kB / 0.5488 GB, free: 91.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.01035/0.8395, allocations: 5.497 MB / 0.5541 GB, free: 90.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.8396, allocations: 93.55 kB / 0.5542 GB, free: 90.49 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.8419, allocations: 1.568 MB / 0.5558 GB, free: 90.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.842, allocations: 49.58 kB / 0.5558 GB, free: 90.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005971/0.8426, allocations: 1.223 MB / 0.557 GB, free: 89.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.8429, allocations: 0.4975 MB / 0.5575 GB, free: 89.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-05/0.843, allocations: 31.94 kB / 0.5575 GB, free: 88.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.912e-05/0.8431, allocations: 375.8 kB / 0.5579 GB, free: 88.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000964/0.8441, allocations: 0.8212 MB / 0.5587 GB, free: 88.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.8452, allocations: 1.278 MB / 0.5599 GB, free: 87.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.8464, allocations: 1.012 MB / 0.5609 GB, free: 87.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.8464, allocations: 3.844 kB / 0.5609 GB, free: 87.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003695/0.8501, allocations: 2.8 MB / 0.5636 GB, free: 86.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009559/0.8511, allocations: 5.592 MB / 0.5691 GB, free: 80.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.8511, allocations: 10.84 kB / 0.5691 GB, free: 80.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.8524, allocations: 0.6669 MB / 0.5698 GB, free: 79.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.8536, allocations: 374.9 kB / 0.5701 GB, free: 79.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007106/0.8608, allocations: 8.268 MB / 0.5782 GB, free: 74.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.8625, allocations: 109.5 kB / 0.5783 GB, free: 74.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.8626, allocations: 72.27 kB / 0.5784 GB, free: 74.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.557e-06/0.8627, allocations: 3.688 kB / 0.5784 GB, free: 74.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003373/0.866, allocations: 2.605 MB / 0.5809 GB, free: 73.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.8661, allocations: 19.31 kB / 0.5809 GB, free: 73.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.8673, allocations: 0.6671 MB / 0.5816 GB, free: 73.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.8685, allocations: 368.5 kB / 0.5819 GB, free: 73.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006764/0.8753, allocations: 8.262 MB / 0.59 GB, free: 67.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.8769, allocations: 117.4 kB / 0.5901 GB, free: 67.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.8771, allocations: 71.22 kB / 0.5902 GB, free: 67.26 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.0003955/0.8775, allocations: 210.4 kB / 0.5904 GB, free: 67.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/0.8778, allocations: 199.5 kB / 0.5906 GB, free: 66.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.8815, allocations: 2.567 MB / 0.5931 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.8815, allocations: 16.56 kB / 0.5931 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.8815, allocations: 3 kB / 0.5931 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.8815, allocations: 9.938 kB / 0.5931 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007568/0.8891, allocations: 5.355 MB / 0.5983 GB, free: 63.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.8892, allocations: 0 / 0.5983 GB, free: 63.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009358/0.8901, allocations: 231.3 kB / 0.5986 GB, free: 63.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.8915, allocations: 0.6954 MB / 0.5992 GB, free: 63.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.606e-05/0.8917, allocations: 35.73 kB / 0.5993 GB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007827/0.8995, allocations: 9.765 MB / 0.6088 GB, free: 56.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.8995, allocations: 3.75 kB / 0.6088 GB, free: 56.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005193/0.9047, allocations: 3.863 MB / 0.6126 GB, free: 54.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.9059, allocations: 471.4 kB / 0.613 GB, free: 54.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.9061, allocations: 32.59 kB / 0.6131 GB, free: 54.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.9072, allocations: 99.2 kB / 0.6132 GB, free: 54.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003024/0.9075, allocations: 118.4 kB / 0.6133 GB, free: 54.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.613e-05/0.9076, allocations: 38.67 kB / 0.6133 GB, free: 54.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001696/0.9093, allocations: 1.206 MB / 0.6145 GB, free: 53.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9093, allocations: 3.281 kB / 0.6145 GB, free: 53.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003198/0.9125, allocations: 1.043 MB / 0.6155 GB, free: 52.88 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.005329/0.9178, allocations: 5.313 MB / 0.6207 GB, free: 47.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005673/0.9235, allocations: 4.498 MB / 0.6251 GB, free: 43.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.9236, allocations: 0 / 0.6251 GB, free: 43.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002002/0.9256, allocations: 1.705 MB / 0.6268 GB, free: 42.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/0.9287, allocations: 0.5793 MB / 0.6273 GB, free: 41.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.9395, allocations: 5.591 MB / 0.6328 GB, free: 36.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001473/0.9411, allocations: 2.153 MB / 0.6349 GB, free: 35.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00252/0.9436, allocations: 0.8772 MB / 0.6357 GB, free: 34.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009387/0.9445, allocations: 0.9615 MB / 0.6367 GB, free: 33.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/0.9445, allocations: 0 / 0.6367 GB, free: 33.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.344/1.289, allocations: 65.03 MB / 0.7002 GB, free: 100.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002164/1.289, allocations: 216.7 kB / 0.7004 GB, free: 100.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.752/5.041, allocations: 5.312 kB / 0.7004 GB, free: 100.1 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking.fmu > Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat