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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000873/0.000873, allocations: 89.8 kB / 16.31 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009806/0.0009808, allocations: 182.4 kB / 17.21 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.3 MB / 241.2 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002919/0.000292, allocations: 6.781 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1206, allocations: 50.43 MB / 351.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01236/0.133, allocations: 10.15 MB / 361.5 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008209/0.1413, allocations: 3.487 MB / 365 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.1433, allocations: 67.69 kB / 365.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.1454, allocations: 0.6523 MB / 365.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.1486, allocations: 0.7846 MB / 366.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1498, allocations: 319.5 kB / 366.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004926/0.1547, allocations: 3.396 MB / 370.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002413/0.1571, allocations: 1.751 MB / 372 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001965/0.1591, allocations: 1.093 MB / 373 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/0.1611, allocations: 1.459 MB / 374.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003004/0.1614, allocations: 164 kB / 374.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006431/0.162, allocations: 235.9 kB / 374.9 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008777/0.1629, allocations: 0.8021 MB / 375.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000784/0.1637, allocations: 0.6056 MB / 376.3 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003878/0.1676, allocations: 4.106 MB / 380.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.1676, allocations: 4 kB / 380.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.1676, allocations: 0 / 380.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.685e-05/0.1677, allocations: 4 kB / 380.4 MB, free: 14.42 MB / 318.1 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.0057/0.1734, allocations: 2.973 MB / 383.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.1735, allocations: 8.031 kB / 383.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005412/0.1741, allocations: 366.6 kB / 383.8 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008226/0.1749, allocations: 348 kB / 384.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003083/0.178, allocations: 1.773 MB / 385.9 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.1781, allocations: 189 kB / 386.1 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003632/0.1785, allocations: 251.9 kB / 386.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005918/0.1844, allocations: 3.41 MB / 389.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.613e-05/0.1845, allocations: 11.91 kB / 389.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002547/0.1848, allocations: 104 kB / 389.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001405/0.1849, allocations: 124.8 kB / 389.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005084/0.19, allocations: 2.919 MB / 392.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01635/0.2064, allocations: 10.91 MB / 403.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003006/0.2094, allocations: 2.425 MB / 406.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/0.2114, allocations: 1.188 MB / 407.4 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002898/0.2117, allocations: 130.4 kB / 407.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/0.2117, allocations: 55.81 kB / 407.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 2.866e-06/0.2117, allocations: 0 / 407.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01448/0.2262, allocations: 7.259 MB / 414.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.2263, allocations: 94.42 kB / 414.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/0.2288, allocations: 1.819 MB / 416.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.52e-05/0.2289, allocations: 49.7 kB / 416.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008148/0.2297, allocations: 1.218 MB / 418 MB, free: 7.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003774/0.2301, allocations: 0.4929 MB / 418.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-05/0.2302, allocations: 40 kB / 418.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.2304, allocations: 373.9 kB / 418.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.2317, allocations: 0.8432 MB / 419.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.2332, allocations: 1.31 MB / 421.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/0.2347, allocations: 1.029 MB / 422.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.2347, allocations: 4 kB / 422.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004554/0.2393, allocations: 2.853 MB / 424.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003603/0.2397, allocations: 0.4985 MB / 425.4 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.2397, allocations: 12 kB / 425.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.211/0.4507, allocations: 0.6614 MB / 426.1 MB, free: 61.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.4521, allocations: 363.3 kB / 426.5 MB, free: 61.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008779/0.4609, allocations: 8.288 MB / 434.8 MB, free: 57.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/0.4626, allocations: 115.1 kB / 434.9 MB, free: 57.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.4628, allocations: 70.81 kB / 434.9 MB, free: 57.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.4628, allocations: 10.28 kB / 435 MB, free: 57.76 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004591/0.4674, allocations: 2.627 MB / 437.6 MB, free: 57.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.592e-05/0.4675, allocations: 14.06 kB / 437.6 MB, free: 57.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.4691, allocations: 0.6752 MB / 438.3 MB, free: 57.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.4704, allocations: 348.7 kB / 438.6 MB, free: 57.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007863/0.4782, allocations: 8.302 MB / 446.9 MB, free: 52.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.4799, allocations: 106.3 kB / 447 MB, free: 52.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.48, allocations: 71.12 kB / 447.1 MB, free: 52.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (181): * Single equations (assignments): 177 * 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.001743/0.4817, allocations: 0.9342 MB / 448 MB, free: 51.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003877/0.4821, allocations: 200 kB / 448.2 MB, free: 51.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003906/0.486, allocations: 2.558 MB / 450.8 MB, free: 50.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.4861, allocations: 15.59 kB / 450.8 MB, free: 50.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4861, allocations: 0 / 450.8 MB, free: 50.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.4861, allocations: 7.969 kB / 450.8 MB, free: 50.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007145/0.4933, allocations: 5.437 MB / 456.2 MB, free: 47.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.4933, allocations: 8.062 kB / 456.2 MB, free: 47.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008079/0.4941, allocations: 219.7 kB / 456.5 MB, free: 46.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/0.4955, allocations: 0.6932 MB / 457.1 MB, free: 46.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.06e-05/0.4956, allocations: 31.98 kB / 457.2 MB, free: 46.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007996/0.5036, allocations: 9.767 MB / 466.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.5036, allocations: 7.953 kB / 467 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004878/0.5085, allocations: 3.752 MB / 470.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009005/0.5094, allocations: 466.5 kB / 471.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.5096, allocations: 35.98 kB / 471.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000843/0.5105, allocations: 99.83 kB / 471.3 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002598/0.5108, allocations: 117.1 kB / 471.4 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-05/0.5109, allocations: 40 kB / 471.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001564/0.5124, allocations: 1.248 MB / 472.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5124, allocations: 0 / 472.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002799/0.5152, allocations: 0.9995 MB / 473.7 MB, free: 29.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * 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 (110): * Single equations (assignments): 106 * 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.004617/0.5199, allocations: 4.365 MB / 478.1 MB, free: 24.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005322/0.5252, allocations: 4.486 MB / 482.5 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.5252, allocations: 0 / 482.5 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001896/0.5271, allocations: 1.736 MB / 484.3 MB, free: 18.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.5297, allocations: 0.5925 MB / 484.9 MB, free: 17.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/0.5544, allocations: 16.77 MB / 0.4899 GB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001949/0.5564, allocations: 2.099 MB / 0.4919 GB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001941/0.5583, allocations: 0.5834 MB / 0.4925 GB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.5596, allocations: 0.9679 MB / 0.4934 GB, free: 12.2 MB / 366.1 MB Notification: Performance of SimCode: time 1.422e-06/0.5596, allocations: 4 kB / 0.4935 GB, free: 12.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09518/0.6548, allocations: 58.54 MB / 0.5506 GB, free: 2.148 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/0.655, allocations: 248.9 kB / 0.5509 GB, free: 1.863 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.213/3.868, allocations: 4.062 kB / 0.5509 GB, free: 1.859 MB / 414.1 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