Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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 3.2.3+maint.om/package.mo", uses=false) 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 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.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_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.0009981/0.0009981, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.001036/0.001036, allocations: 179.3 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004804, allocations: 12 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1154, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.009748/0.1252, allocations: 8.331 MB / 336.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006885/0.1322, allocations: 3.365 MB / 340.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.1336, allocations: 51.75 kB / 340.2 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.1353, allocations: 0.6297 MB / 340.8 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002242/0.1376, allocations: 0.7244 MB / 341.5 MB, free: 6.844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007891/0.1384, allocations: 271.6 kB / 341.8 MB, free: 6.578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002654/0.141, allocations: 1.798 MB / 343.6 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001974/0.143, allocations: 1.552 MB / 345.1 MB, free: 3.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001255/0.1443, allocations: 0.8678 MB / 346 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.1458, allocations: 1.128 MB / 347.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002319/0.146, allocations: 140 kB / 347.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005257/0.1466, allocations: 219.8 kB / 347.5 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006732/0.1472, allocations: 0.6621 MB / 348.2 MB, free: 176 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005334/0.1478, allocations: 0.5199 MB / 348.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003239/0.151, allocations: 3.455 MB / 352.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1511, allocations: 0 / 352.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1511, allocations: 0 / 352.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001172/0.1512, allocations: 0 / 352.1 MB, free: 12.18 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005673/0.1569, allocations: 2.609 MB / 354.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/0.157, allocations: 12.03 kB / 354.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004932/0.1575, allocations: 328.8 kB / 355.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007688/0.1582, allocations: 312.4 kB / 355.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.161, allocations: 1.481 MB / 356.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.1612, allocations: 168.4 kB / 357 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003366/0.1615, allocations: 231.9 kB / 357.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005163/0.1667, allocations: 2.886 MB / 360.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.384e-05/0.1668, allocations: 0 / 360.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.167, allocations: 99.94 kB / 360.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.1671, allocations: 112.3 kB / 360.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004389/0.1715, allocations: 2.437 MB / 362.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01566/0.1872, allocations: 9.09 MB / 371.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002357/0.1896, allocations: 1.721 MB / 373.6 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003091/0.1899, allocations: 207.1 kB / 373.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.19, allocations: 47.56 kB / 373.8 MB, free: 5.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.837e-06/0.19, allocations: 0 / 373.8 MB, free: 5.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.227/0.417, allocations: 7.489 MB / 381.3 MB, free: 49.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.4171, allocations: 65.03 kB / 381.4 MB, free: 49.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002845/0.42, allocations: 1.503 MB / 382.9 MB, free: 49.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001652/0.4202, allocations: 44.67 kB / 382.9 MB, free: 49.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008469/0.421, allocations: 1.101 MB / 384 MB, free: 48.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003882/0.4214, allocations: 439 kB / 384.5 MB, free: 48.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/0.4215, allocations: 30.34 kB / 384.5 MB, free: 48.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.4216, allocations: 365.1 kB / 384.9 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.4231, allocations: 0.7617 MB / 385.6 MB, free: 47.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.4247, allocations: 1.175 MB / 386.8 MB, free: 46.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001587/0.4263, allocations: 0.9396 MB / 387.7 MB, free: 46.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.4263, allocations: 3.188 kB / 387.7 MB, free: 46.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.005078/0.4314, allocations: 2.643 MB / 390.4 MB, free: 45.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.4315, allocations: 10.47 kB / 390.4 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/0.4315, allocations: 12.94 kB / 390.4 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.4329, allocations: 0.5566 MB / 391 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.4343, allocations: 352.8 kB / 391.3 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007045/0.4413, allocations: 6.5 MB / 397.8 MB, free: 41.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.443, allocations: 116.8 kB / 397.9 MB, free: 41.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.4431, allocations: 66.67 kB / 398 MB, free: 41.04 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (167): * Single equations (assignments): 164 * 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: 2 * 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 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001443/0.4446, allocations: 0.7234 MB / 398.7 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000352/0.4449, allocations: 164.8 kB / 398.9 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003474/0.4484, allocations: 2.338 MB / 401.2 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4484, allocations: 15.78 kB / 401.2 MB, free: 39.51 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4484, allocations: 6.75 kB / 401.2 MB, free: 39.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.4485, allocations: 5.203 kB / 401.2 MB, free: 39.51 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006551/0.455, allocations: 4.846 MB / 406.1 MB, free: 36.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.4551, allocations: 7.953 kB / 406.1 MB, free: 36.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008218/0.4559, allocations: 223.9 kB / 406.3 MB, free: 36.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.4571, allocations: 0.5836 MB / 406.9 MB, free: 35.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.923e-05/0.4572, allocations: 35.98 kB / 406.9 MB, free: 35.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006598/0.4638, allocations: 7.991 MB / 414.9 MB, free: 27.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4639, allocations: 0 / 414.9 MB, free: 27.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004618/0.4685, allocations: 3.519 MB / 418.4 MB, free: 23.51 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.4696, allocations: 402.8 kB / 418.8 MB, free: 23.1 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.4698, allocations: 26.62 kB / 418.8 MB, free: 23.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008247/0.4706, allocations: 95.89 kB / 418.9 MB, free: 22.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.4709, allocations: 100.8 kB / 419 MB, free: 22.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-05/0.471, allocations: 39.98 kB / 419.1 MB, free: 22.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001387/0.4723, allocations: 1.02 MB / 420.1 MB, free: 21.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4724, allocations: 0 / 420.1 MB, free: 21.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001913/0.4743, allocations: 0.4951 MB / 420.6 MB, free: 21.33 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (102): * Single equations (assignments): 99 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 20,(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.004898/0.4792, allocations: 4.69 MB / 425.3 MB, free: 16.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003585/0.4828, allocations: 2.373 MB / 427.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.4828, allocations: 4.188 kB / 427.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.4848, allocations: 1.49 MB / 429.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.4867, allocations: 441.7 kB / 429.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02556/0.5123, allocations: 22.88 MB / 452.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001759/0.5141, allocations: 1.923 MB / 454.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001292/0.5154, allocations: 383.1 kB / 454.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/0.5165, allocations: 0.8742 MB / 455.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5165, allocations: 0 / 455.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.076/0.5925, allocations: 42.9 MB / 498.5 MB, free: 6.246 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/0.5928, allocations: 238 kB / 498.8 MB, free: 6.004 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.607/3.2, allocations: 3.906 kB / 498.8 MB, free: 6 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat