Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 180 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008457/0.0008457, allocations: 93.2 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002871, allocations: 12 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2219, allocations: 50.39 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.3522, allocations: 110.5 MB / 0.5 GB, free: 1.973 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.3526, allocations: 92.64 kB / 0.5001 GB, free: 1.883 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3518/0.7044, allocations: 55.17 MB / 0.554 GB, free: 60.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.7044, allocations: 0 / 0.554 GB, free: 60.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000227/0.7047, allocations: 71.88 kB / 0.5541 GB, free: 60.68 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.006033/0.7107, allocations: 2.985 MB / 0.557 GB, free: 57.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.7108, allocations: 8.031 kB / 0.557 GB, free: 57.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006484/0.7114, allocations: 363.3 kB / 0.5573 GB, free: 57.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008388/0.7123, allocations: 364 kB / 0.5577 GB, free: 56.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003379/0.7157, allocations: 1.948 MB / 0.5596 GB, free: 54.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.7158, allocations: 189 kB / 0.5598 GB, free: 54.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003242/0.7161, allocations: 251.9 kB / 0.56 GB, free: 54.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004546/0.7207, allocations: 3.377 MB / 0.5633 GB, free: 50.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.752e-05/0.7208, allocations: 7.938 kB / 0.5633 GB, free: 50.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.721, allocations: 108 kB / 0.5634 GB, free: 50.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.473e-05/0.7211, allocations: 120.8 kB / 0.5635 GB, free: 50.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004066/0.7251, allocations: 2.767 MB / 0.5662 GB, free: 47.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0148/0.74, allocations: 10.92 MB / 0.5769 GB, free: 36.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.7424, allocations: 2.479 MB / 0.5793 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002667/0.7427, allocations: 130.4 kB / 0.5794 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.7427, allocations: 55.81 kB / 0.5795 GB, free: 33.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.657e-06/0.7427, allocations: 4 kB / 0.5795 GB, free: 33.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01329/0.756, allocations: 7.314 MB / 0.5866 GB, free: 26.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.7561, allocations: 94.42 kB / 0.5867 GB, free: 26.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/0.7583, allocations: 1.583 MB / 0.5883 GB, free: 24.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.7585, allocations: 53.7 kB / 0.5883 GB, free: 24.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000587/0.7591, allocations: 1.214 MB / 0.5895 GB, free: 23.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000308/0.7594, allocations: 0.4968 MB / 0.59 GB, free: 22.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.7595, allocations: 32 kB / 0.59 GB, free: 22.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.7596, allocations: 381.9 kB / 0.5904 GB, free: 22.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.7607, allocations: 0.8511 MB / 0.5912 GB, free: 21.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.7619, allocations: 1.31 MB / 0.5925 GB, free: 20.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.7631, allocations: 1.037 MB / 0.5935 GB, free: 19.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.7631, allocations: 4 kB / 0.5935 GB, free: 19.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003959/0.7671, allocations: 2.872 MB / 0.5963 GB, free: 16.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001086/0.7682, allocations: 5.584 MB / 0.6018 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.172e-05/0.7682, allocations: 12 kB / 0.6018 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.7697, allocations: 0.6746 MB / 0.6024 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.771, allocations: 371.4 kB / 0.6028 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007464/0.7785, allocations: 8.5 MB / 0.6111 GB, free: 184 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.7804, allocations: 115.8 kB / 0.6112 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.7806, allocations: 76 kB / 0.6113 GB, free: 15.99 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.7806, allocations: 4 kB / 0.6113 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004442/0.7851, allocations: 2.646 MB / 0.6139 GB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.32e-05/0.7851, allocations: 12.06 kB / 0.6139 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/0.7867, allocations: 0.679 MB / 0.6146 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.7881, allocations: 367.8 kB / 0.6149 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/0.7985, allocations: 8.502 MB / 0.6232 GB, free: 3.363 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002543/0.8012, allocations: 107.8 kB / 0.6233 GB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/0.8015, allocations: 80.05 kB / 0.6234 GB, free: 3.18 MB / 394.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.002277/0.8038, allocations: 0.9222 MB / 0.6243 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006119/0.8044, allocations: 205.5 kB / 0.6245 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004842/0.8093, allocations: 2.621 MB / 0.627 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.8093, allocations: 19.94 kB / 0.6271 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.8093, allocations: 0 / 0.6271 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.8093, allocations: 3.984 kB / 0.6271 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.8195, allocations: 5.425 MB / 0.6324 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.8196, allocations: 0 / 0.6324 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.8206, allocations: 231.7 kB / 0.6326 GB, free: 9.621 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.8223, allocations: 0.6904 MB / 0.6333 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.8225, allocations: 35.94 kB / 0.6333 GB, free: 8.883 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/0.8335, allocations: 10.01 MB / 0.6431 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.8336, allocations: 3.938 kB / 0.6431 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00619/0.8398, allocations: 3.959 MB / 0.6469 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001417/0.8412, allocations: 474.5 kB / 0.6474 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004159/0.8416, allocations: 28 kB / 0.6474 GB, free: 9.742 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.8428, allocations: 104.1 kB / 0.6475 GB, free: 9.641 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.8431, allocations: 121 kB / 0.6476 GB, free: 9.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.8432, allocations: 44 kB / 0.6477 GB, free: 9.477 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002105/0.8453, allocations: 1.225 MB / 0.6489 GB, free: 8.262 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8453, allocations: 0 / 0.6489 GB, free: 8.262 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004029/0.8494, allocations: 1.047 MB / 0.6499 GB, free: 7.215 MB / 426.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.007461/0.8569, allocations: 5.406 MB / 0.6552 GB, free: 1.715 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2099/1.067, allocations: 4.535 MB / 0.6596 GB, free: 105.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.067, allocations: 3.625 kB / 0.6596 GB, free: 105.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002272/1.069, allocations: 1.753 MB / 0.6613 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/1.072, allocations: 0.5778 MB / 0.6619 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03011/1.102, allocations: 25.81 MB / 0.6871 GB, free: 89.91 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/1.104, allocations: 2.147 MB / 0.6892 GB, free: 89.16 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002153/1.106, allocations: 0.5934 MB / 0.6898 GB, free: 89.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.107, allocations: 0.9881 MB / 0.6907 GB, free: 89.14 MB / 426.7 MB Notification: Performance of SimCode: time 2.144e-06/1.107, allocations: 0 / 0.6907 GB, free: 89.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09369/1.201, allocations: 62.49 MB / 0.7518 GB, free: 46.76 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/1.201, allocations: 239.6 kB / 0.752 GB, free: 46.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.739/4.94, allocations: 7.094 kB / 0.752 GB, free: 46.52 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat