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.001333/0.001333, allocations: 99.38 kB / 16.95 MB, free: 6.453 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.002091/0.002091, allocations: 186.1 kB / 17.84 MB, free: 6.004 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.682/1.682, allocations: 205.4 MB / 224 MB, free: 13.06 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.0004955/0.0004956, allocations: 8 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1031, allocations: 47.58 MB / 328.5 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01028/0.1135, allocations: 9.074 MB / 337.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007704/0.1212, allocations: 3.274 MB / 340.8 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001978/0.1233, allocations: 43.75 kB / 340.9 MB, free: 7.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00205/0.1253, allocations: 0.6214 MB / 341.5 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002745/0.1281, allocations: 0.7068 MB / 342.2 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009605/0.1291, allocations: 267.6 kB / 342.4 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003925/0.133, allocations: 2.794 MB / 345.2 MB, free: 3.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002311/0.1353, allocations: 1.548 MB / 346.8 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002052/0.1374, allocations: 0.9454 MB / 347.7 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002382/0.1398, allocations: 1.288 MB / 349 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003378/0.1402, allocations: 144 kB / 349.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007757/0.1409, allocations: 223.8 kB / 349.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008071/0.1418, allocations: 0.7086 MB / 350.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007555/0.1425, allocations: 0.516 MB / 350.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003588/0.1461, allocations: 3.514 MB / 354.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.1462, allocations: 0 / 354.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1462, allocations: 0 / 354.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001343/0.1463, allocations: 0 / 354.1 MB, free: 10.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.006204/0.1525, allocations: 2.617 MB / 356.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.1526, allocations: 12.03 kB / 356.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007148/0.1533, allocations: 324.7 kB / 357.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008535/0.1542, allocations: 308.5 kB / 357.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/0.1568, allocations: 1.462 MB / 358.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.157, allocations: 176.4 kB / 359 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003105/0.1573, allocations: 231.8 kB / 359.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005193/0.1625, allocations: 2.901 MB / 362.1 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.402e-05/0.1626, allocations: 8 kB / 362.1 MB, free: 1.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002071/0.1628, allocations: 99.94 kB / 362.2 MB, free: 1.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.163, allocations: 116.3 kB / 362.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004454/0.1674, allocations: 2.437 MB / 364.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.1815, allocations: 9.137 MB / 373.9 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00241/0.1839, allocations: 1.718 MB / 375.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001698/0.1856, allocations: 0.9916 MB / 376.6 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003056/0.186, allocations: 215.1 kB / 376.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/0.186, allocations: 47.56 kB / 376.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.617e-06/0.186, allocations: 0 / 376.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.248/0.4341, allocations: 6.653 MB / 383.5 MB, free: 49.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.4342, allocations: 64.39 kB / 383.6 MB, free: 49.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003217/0.4374, allocations: 1.553 MB / 385.2 MB, free: 49.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.934e-05/0.4375, allocations: 45.92 kB / 385.2 MB, free: 49.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000953/0.4385, allocations: 1.103 MB / 386.3 MB, free: 48.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000422/0.4389, allocations: 430.2 kB / 386.7 MB, free: 47.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-05/0.439, allocations: 32.88 kB / 386.8 MB, free: 47.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.4392, allocations: 364.2 kB / 387.1 MB, free: 47.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.4406, allocations: 0.7107 MB / 387.8 MB, free: 47.33 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/0.4424, allocations: 1.142 MB / 389 MB, free: 46.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/0.4441, allocations: 0.8946 MB / 389.9 MB, free: 46.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.4441, allocations: 3.344 kB / 389.9 MB, free: 46.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005343/0.4494, allocations: 2.527 MB / 392.4 MB, free: 45.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/0.4495, allocations: 14.81 kB / 392.4 MB, free: 45.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.874e-05/0.4496, allocations: 15.28 kB / 392.4 MB, free: 45.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.4507, allocations: 424.5 kB / 392.8 MB, free: 45.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.4519, allocations: 356.6 kB / 393.2 MB, free: 44.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006284/0.4582, allocations: 6.55 MB / 399.7 MB, free: 39.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/0.46, allocations: 117 kB / 399.8 MB, free: 39.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.4601, allocations: 62.91 kB / 399.9 MB, free: 39.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * 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%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001544/0.4616, allocations: 0.7104 MB / 400.6 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003184/0.462, allocations: 168.9 kB / 400.8 MB, free: 39.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003332/0.4653, allocations: 2.211 MB / 403 MB, free: 38.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.4653, allocations: 11.47 kB / 403 MB, free: 38.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4653, allocations: 3.781 kB / 403 MB, free: 38.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4654, allocations: 11.92 kB / 403 MB, free: 38.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006557/0.4719, allocations: 4.807 MB / 407.8 MB, free: 34.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.4719, allocations: 4 kB / 407.8 MB, free: 34.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008203/0.4728, allocations: 231.6 kB / 408.1 MB, free: 34.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009589/0.4737, allocations: 455.2 kB / 408.5 MB, free: 33.83 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.582e-05/0.4738, allocations: 35.98 kB / 408.5 MB, free: 33.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005971/0.4798, allocations: 7.97 MB / 416.5 MB, free: 25.31 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4798, allocations: 11.94 kB / 416.5 MB, free: 25.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004373/0.4842, allocations: 3.238 MB / 419.8 MB, free: 21.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008401/0.4851, allocations: 410.7 kB / 420.2 MB, free: 21.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/0.4853, allocations: 35.95 kB / 420.2 MB, free: 21.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008245/0.4861, allocations: 87.91 kB / 420.3 MB, free: 21.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.4863, allocations: 112.7 kB / 420.4 MB, free: 21.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.6e-05/0.4864, allocations: 39.98 kB / 420.4 MB, free: 21.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001463/0.4879, allocations: 1.051 MB / 421.5 MB, free: 20.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4879, allocations: 0 / 421.5 MB, free: 20.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002002/0.4899, allocations: 495 kB / 422 MB, free: 19.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * 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%) 12,(1,100.0%) 6,(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.004612/0.4945, allocations: 3.839 MB / 425.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003668/0.4982, allocations: 2.287 MB / 428.1 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.4982, allocations: 4 kB / 428.1 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.5003, allocations: 1.48 MB / 429.6 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/0.5025, allocations: 456.7 kB / 430 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02542/0.5279, allocations: 14.35 MB / 444.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00231/0.5303, allocations: 1.871 MB / 446.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001696/0.532, allocations: 390.9 kB / 446.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/0.5335, allocations: 0.8742 MB / 447.5 MB, free: 9.105 MB / 334.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5335, allocations: 2.188 kB / 447.5 MB, free: 9.105 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08787/0.6214, allocations: 41.93 MB / 489.4 MB, free: 15.1 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000357/0.6218, allocations: 255.8 kB / 489.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.515/4.137, allocations: 0 / 489.7 MB, free: 14.84 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