Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",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.0009818/0.0009818, allocations: 89.12 kB / 16.3 MB, free: 6.457 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.00111/0.00111, allocations: 179.6 kB / 17.2 MB, free: 6.34 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.429/1.429, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002954/0.0002954, allocations: 8.375 kB / 300.8 MB, free: 5.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1346, allocations: 50.42 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009922/0.1446, allocations: 7.813 MB / 359.1 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00669/0.1513, allocations: 2.99 MB / 362 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.1528, allocations: 47.75 kB / 362.1 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.1543, allocations: 0.5519 MB / 362.6 MB, free: 180 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002501/0.1569, allocations: 0.6582 MB / 363.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000899/0.1578, allocations: 247.6 kB / 363.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003292/0.1611, allocations: 1.665 MB / 365.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002072/0.1632, allocations: 1.528 MB / 366.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001595/0.1648, allocations: 0.8095 MB / 367.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.1661, allocations: 1.058 MB / 368.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002149/0.1664, allocations: 128 kB / 368.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005183/0.1669, allocations: 203.9 kB / 368.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006494/0.1676, allocations: 0.6426 MB / 369.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005242/0.1681, allocations: 492.5 kB / 370 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002923/0.171, allocations: 3.299 MB / 373.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.171, allocations: 0 / 373.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.939e-06/0.1711, allocations: 4 kB / 373.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.199e-05/0.1712, allocations: 3.938 kB / 373.4 MB, free: 5.395 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005199/0.1764, allocations: 2.48 MB / 375.8 MB, free: 2.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1764, allocations: 8.031 kB / 375.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005467/0.177, allocations: 316 kB / 376.2 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006791/0.1777, allocations: 292.7 kB / 376.4 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002577/0.1803, allocations: 1.448 MB / 377.9 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.1804, allocations: 172.2 kB / 378.1 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003124/0.1807, allocations: 211.9 kB / 378.3 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004518/0.1853, allocations: 2.776 MB / 381 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.784e-05/0.1853, allocations: 4 kB / 381 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/0.1855, allocations: 88 kB / 381.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/0.1857, allocations: 108.1 kB / 381.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004052/0.1897, allocations: 2.351 MB / 383.6 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01382/0.2036, allocations: 8.609 MB / 392.2 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002638/0.2062, allocations: 1.698 MB / 393.9 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003869/0.2067, allocations: 216.2 kB / 394.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.081e-05/0.2067, allocations: 47.52 kB / 394.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=101): time 6.312e-06/0.2068, allocations: 0 / 394.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=116): time 0.01404/0.2208, allocations: 6.298 MB / 400.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.2209, allocations: 64.41 kB / 400.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002153/0.2231, allocations: 1.394 MB / 401.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.2232, allocations: 45.7 kB / 401.9 MB, free: 7.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008353/0.2241, allocations: 1.037 MB / 403 MB, free: 6.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/0.2245, allocations: 410.1 kB / 403.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.269e-05/0.2245, allocations: 28 kB / 403.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.2248, allocations: 361.9 kB / 403.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.2259, allocations: 0.6949 MB / 404.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.2273, allocations: 1.081 MB / 405.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.2287, allocations: 0.8613 MB / 406.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.2287, allocations: 4 kB / 406.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003998/0.2327, allocations: 2.409 MB / 408.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.2327, allocations: 12 kB / 408.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/0.2327, allocations: 12 kB / 408.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009226/0.2337, allocations: 399.3 kB / 409.2 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.2349, allocations: 347.5 kB / 409.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006339/0.2413, allocations: 6.357 MB / 415.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.2426, allocations: 115.7 kB / 416 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.2428, allocations: 52 kB / 416.1 MB, free: 9.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 156 * 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: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001365/0.2441, allocations: 0.6964 MB / 416.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.2445, allocations: 158 kB / 416.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.2482, allocations: 2.134 MB / 419.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.2482, allocations: 12 kB / 419.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.2483, allocations: 4 kB / 419.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.2483, allocations: 3.984 kB / 419.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007689/0.256, allocations: 4.546 MB / 423.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.256, allocations: 7.984 kB / 423.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009449/0.257, allocations: 232.1 kB / 423.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.258, allocations: 423.1 kB / 424.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.043e-05/0.2581, allocations: 31.98 kB / 424.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2087/0.4669, allocations: 7.876 MB / 432.2 MB, free: 57.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4669, allocations: 5.469 kB / 432.2 MB, free: 57.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004944/0.4719, allocations: 3.307 MB / 435.5 MB, free: 56.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008125/0.4727, allocations: 375.3 kB / 435.9 MB, free: 56.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.4729, allocations: 33.36 kB / 435.9 MB, free: 56.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008085/0.4737, allocations: 88.86 kB / 436 MB, free: 56.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.474, allocations: 95.34 kB / 436.1 MB, free: 56.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.972e-05/0.4741, allocations: 39.03 kB / 436.1 MB, free: 56.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001389/0.4755, allocations: 0.9406 MB / 437.1 MB, free: 56.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4755, allocations: 4.609 kB / 437.1 MB, free: 56.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001559/0.477, allocations: 463.9 kB / 437.5 MB, free: 56.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * 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: 4 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005252/0.4823, allocations: 4.776 MB / 442.3 MB, free: 54.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003285/0.4856, allocations: 2.241 MB / 444.5 MB, free: 53.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.4856, allocations: 0 / 444.5 MB, free: 53.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.4874, allocations: 1.428 MB / 446 MB, free: 53.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/0.4891, allocations: 383.7 kB / 446.3 MB, free: 53.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02096/0.5101, allocations: 20.94 MB / 467.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.5114, allocations: 1.846 MB / 469.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001135/0.5126, allocations: 369.6 kB / 469.5 MB, free: 33.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008457/0.5134, allocations: 0.8156 MB / 470.3 MB, free: 32.65 MB / 350.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5134, allocations: 1.75 kB / 470.3 MB, free: 32.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05569/0.5691, allocations: 38.54 MB / 0.4969 GB, free: 10.54 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.5694, allocations: 227.6 kB / 0.4971 GB, free: 10.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.997/3.567, allocations: 0 / 0.4971 GB, free: 10.29 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat