Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 96.95 kB / 17.01 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 194.2 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002394, allocations: 8 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1127, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01008/0.1228, allocations: 9.157 MB / 367.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006595/0.1294, allocations: 3.277 MB / 370.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.1309, allocations: 51.75 kB / 370.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.1327, allocations: 0.6213 MB / 371.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2141/0.3468, allocations: 0.6989 MB / 372.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001525/0.3484, allocations: 270.8 kB / 372.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005293/0.3537, allocations: 2.788 MB / 375.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003032/0.3567, allocations: 1.579 MB / 376.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00277/0.3595, allocations: 0.9507 MB / 377.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003522/0.363, allocations: 1.286 MB / 379 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005786/0.3636, allocations: 139.7 kB / 379.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001411/0.3651, allocations: 224.7 kB / 379.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001168/0.3662, allocations: 0.6995 MB / 380 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.3677, allocations: 0.5177 MB / 380.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00587/0.3736, allocations: 3.522 MB / 384.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.3737, allocations: 1.641 kB / 384.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.849e-06/0.3737, allocations: 0 / 384.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001651/0.3738, allocations: 1.094 kB / 384.1 MB, free: 8.664 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.007376/0.3812, allocations: 2.637 MB / 386.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.3813, allocations: 9.625 kB / 386.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008401/0.3821, allocations: 325.5 kB / 387.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/0.3833, allocations: 314.9 kB / 387.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.3861, allocations: 1.532 MB / 388.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.3863, allocations: 178.2 kB / 389.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003617/0.3866, allocations: 221.2 kB / 389.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005718/0.3924, allocations: 2.912 MB / 392.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.898e-05/0.3924, allocations: 6.656 kB / 392.2 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002072/0.3927, allocations: 91.69 kB / 392.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001449/0.3928, allocations: 119.2 kB / 392.4 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004564/0.3974, allocations: 2.441 MB / 394.8 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01419/0.4116, allocations: 9.157 MB / 404 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002369/0.414, allocations: 1.712 MB / 405.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/0.4158, allocations: 1.003 MB / 406.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003222/0.4161, allocations: 213.2 kB / 406.9 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.4162, allocations: 43.56 kB / 407 MB, free: 9.387 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.045e-06/0.4162, allocations: 2.516 kB / 407 MB, free: 9.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01538/0.4316, allocations: 6.692 MB / 413.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.4317, allocations: 64.41 kB / 413.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003619/0.4354, allocations: 1.558 MB / 415.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.4355, allocations: 49.7 kB / 415.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000986/0.4365, allocations: 1.103 MB / 416.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.4369, allocations: 432.3 kB / 416.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.586e-05/0.437, allocations: 30.41 kB / 416.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.4372, allocations: 373.7 kB / 417.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.4385, allocations: 0.7144 MB / 418 MB, free: 14.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.4402, allocations: 1.149 MB / 419.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.4418, allocations: 0.8964 MB / 420 MB, free: 11.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.566e-05/0.4418, allocations: 4 kB / 420 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004612/0.4464, allocations: 2.532 MB / 422.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.4464, allocations: 8 kB / 422.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/0.4465, allocations: 16 kB / 422.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.4475, allocations: 428 kB / 423 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.4488, allocations: 351.5 kB / 423.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.4553, allocations: 6.547 MB / 429.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.457, allocations: 115.8 kB / 430 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.4572, allocations: 60.16 kB / 430.1 MB, free: 1.492 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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.001696/0.4589, allocations: 0.7082 MB / 430.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005077/0.4594, allocations: 177.9 kB / 430.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/0.4634, allocations: 2.225 MB / 433.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.4634, allocations: 12 kB / 433.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.4634, allocations: 8 kB / 433.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.4634, allocations: 10.48 kB / 433.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008553/0.472, allocations: 4.802 MB / 438 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.472, allocations: 0 / 438 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000909/0.4729, allocations: 232.1 kB / 438.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.4741, allocations: 458.8 kB / 438.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.4742, allocations: 31.98 kB / 438.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008419/0.4826, allocations: 7.976 MB / 446.7 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.707e-06/0.4827, allocations: 11.94 kB / 446.7 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006155/0.4889, allocations: 3.245 MB / 449.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/0.4901, allocations: 408.9 kB / 450.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007596/0.4909, allocations: 32 kB / 450.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/0.4924, allocations: 95.89 kB / 450.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.4927, allocations: 92.77 kB / 450.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.715e-05/0.4928, allocations: 39.98 kB / 450.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002374/0.4952, allocations: 1.067 MB / 451.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4952, allocations: 0 / 451.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002752/0.498, allocations: 488 kB / 452.1 MB, free: 10.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (107): * Single equations (assignments): 103 * 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.005951/0.5039, allocations: 3.85 MB / 456 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004005/0.5079, allocations: 2.298 MB / 458.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.508, allocations: 0 / 458.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002424/0.5104, allocations: 1.482 MB / 459.8 MB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/0.5137, allocations: 463.8 kB / 460.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0322/0.5459, allocations: 14.35 MB / 474.6 MB, free: 3.129 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002489/0.5485, allocations: 1.864 MB / 476.4 MB, free: 1.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001726/0.5502, allocations: 394.8 kB / 476.8 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.5517, allocations: 0.8742 MB / 477.7 MB, free: 15.96 MB / 398.1 MB Notification: Performance of SimCode: time 2.795e-06/0.5518, allocations: 0 / 477.7 MB, free: 15.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07689/0.6287, allocations: 42.04 MB / 0.5075 GB, free: 6.387 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.6289, allocations: 232.9 kB / 0.5078 GB, free: 6.148 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.795/3.424, allocations: 0 / 0.5078 GB, free: 6.148 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat