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.001163/0.001163, allocations: 96.77 kB / 16.3 MB, free: 5.992 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.001317/0.001317, allocations: 184.1 kB / 17.2 MB, free: 5.906 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.475/1.475, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 7.953 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1276, allocations: 50.43 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01103/0.1387, allocations: 9.286 MB / 360.5 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008582/0.1473, allocations: 3.617 MB / 364.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002359/0.1497, allocations: 55.69 kB / 364.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002426/0.1522, allocations: 0.6841 MB / 364.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003891/0.1561, allocations: 0.849 MB / 365.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.1574, allocations: 323.5 kB / 366 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004388/0.1618, allocations: 2.145 MB / 368.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002441/0.1642, allocations: 1.743 MB / 369.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002323/0.1666, allocations: 1.016 MB / 370.9 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002385/0.169, allocations: 1.264 MB / 372.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004698/0.1695, allocations: 156 kB / 372.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008974/0.1704, allocations: 223.9 kB / 372.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008258/0.1712, allocations: 0.7633 MB / 373.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009307/0.1722, allocations: 0.6017 MB / 373.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004304/0.1765, allocations: 4.055 MB / 378 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1765, allocations: 0 / 378 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.1765, allocations: 0 / 378 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001612/0.1767, allocations: 0 / 378 MB, free: 0.7422 MB / 302.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.007481/0.1842, allocations: 2.954 MB / 381 MB, free: 13.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.934e-05/0.1843, allocations: 8.031 kB / 381 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001074/0.1853, allocations: 366.6 kB / 381.3 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/0.1864, allocations: 352 kB / 381.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003927/0.1904, allocations: 1.796 MB / 383.5 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.1906, allocations: 197 kB / 383.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003852/0.191, allocations: 244 kB / 383.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006505/0.1975, allocations: 3.39 MB / 387.3 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.325e-05/0.1976, allocations: 11.94 kB / 387.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002377/0.1978, allocations: 104 kB / 387.4 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/0.198, allocations: 116.8 kB / 387.5 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005737/0.2037, allocations: 2.919 MB / 390.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02127/0.225, allocations: 10.86 MB / 401.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003671/0.2287, allocations: 2.433 MB / 403.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003229/0.2291, allocations: 126.4 kB / 403.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/0.2292, allocations: 47.88 kB / 403.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 3.998e-06/0.2292, allocations: 0 / 403.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01655/0.2457, allocations: 7.269 MB / 411.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.2458, allocations: 90.42 kB / 411.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.2486, allocations: 1.764 MB / 413 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.2487, allocations: 53.64 kB / 413.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.2498, allocations: 1.229 MB / 414.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004944/0.2503, allocations: 0.4891 MB / 414.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.2504, allocations: 39.94 kB / 414.8 MB, free: 11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.2506, allocations: 373.9 kB / 415.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.2519, allocations: 0.8393 MB / 416 MB, free: 9.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.2536, allocations: 1.314 MB / 417.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.2552, allocations: 1.021 MB / 418.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/0.2552, allocations: 4 kB / 418.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004811/0.26, allocations: 2.853 MB / 421.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.256/0.516, allocations: 5.664 MB / 426.9 MB, free: 60.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.774e-05/0.5162, allocations: 14.94 kB / 426.9 MB, free: 60.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/0.518, allocations: 0.6697 MB / 427.6 MB, free: 60.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/0.5195, allocations: 352.5 kB / 427.9 MB, free: 60.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009066/0.5285, allocations: 8.509 MB / 436.4 MB, free: 56.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/0.5304, allocations: 114.5 kB / 436.5 MB, free: 56.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.5306, allocations: 70.3 kB / 436.6 MB, free: 56.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.5306, allocations: 11.08 kB / 436.6 MB, free: 56.23 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004615/0.5352, allocations: 2.621 MB / 439.2 MB, free: 56.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.226e-05/0.5353, allocations: 17.69 kB / 439.3 MB, free: 56.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001661/0.537, allocations: 0.6729 MB / 439.9 MB, free: 56.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.5382, allocations: 356.3 kB / 440.3 MB, free: 56.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007966/0.5462, allocations: 8.508 MB / 448.8 MB, free: 50.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.5479, allocations: 106.8 kB / 448.9 MB, free: 50.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.548, allocations: 69.56 kB / 449 MB, free: 50.54 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.001625/0.5496, allocations: 0.9349 MB / 449.9 MB, free: 50 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004549/0.5501, allocations: 204 kB / 450.1 MB, free: 50 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003909/0.554, allocations: 2.571 MB / 452.7 MB, free: 48.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.554, allocations: 15.03 kB / 452.7 MB, free: 48.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5541, allocations: 0 / 452.7 MB, free: 48.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.5541, allocations: 3.984 kB / 452.7 MB, free: 48.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007483/0.5616, allocations: 5.409 MB / 458.1 MB, free: 45.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.5616, allocations: 4 kB / 458.1 MB, free: 45.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008174/0.5624, allocations: 211.7 kB / 458.3 MB, free: 44.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/0.5638, allocations: 0.6957 MB / 459 MB, free: 44.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.247e-05/0.5639, allocations: 35.98 kB / 459 MB, free: 44.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00782/0.5717, allocations: 10.01 MB / 469 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5718, allocations: 4.031 kB / 469 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005001/0.5768, allocations: 3.903 MB / 472.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/0.578, allocations: 466.5 kB / 473.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002641/0.5783, allocations: 35.94 kB / 473.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008969/0.5792, allocations: 99.89 kB / 473.5 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.5795, allocations: 117.1 kB / 473.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.934e-05/0.5796, allocations: 39.98 kB / 473.7 MB, free: 28.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001556/0.5812, allocations: 1.209 MB / 474.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5812, allocations: 0 / 474.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00314/0.5843, allocations: 0.9883 MB / 475.9 MB, free: 26.66 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.004827/0.5892, allocations: 5.099 MB / 481 MB, free: 21.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005561/0.5948, allocations: 4.497 MB / 485.5 MB, free: 16.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.5948, allocations: 0 / 485.5 MB, free: 16.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.5968, allocations: 1.736 MB / 487.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002682/0.5995, allocations: 0.5698 MB / 487.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03335/0.6329, allocations: 25.82 MB / 0.5016 GB, free: 3.562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002016/0.635, allocations: 2.142 MB / 0.5037 GB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00207/0.637, allocations: 0.595 MB / 0.5042 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/0.6386, allocations: 0.9796 MB / 0.5052 GB, free: 15.86 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6386, allocations: 0 / 0.5052 GB, free: 15.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/0.7407, allocations: 57.85 MB / 0.5617 GB, free: 6.496 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.7409, allocations: 239.3 kB / 0.5619 GB, free: 6.254 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.367/4.108, allocations: 0 / 0.5619 GB, free: 6.254 MB / 430.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