Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_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.0009104/0.0009104, allocations: 94.39 kB / 16.3 MB, free: 6.004 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.0008948/0.0008948, allocations: 186.9 kB / 17.2 MB, free: 5.914 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.361/1.361, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003237, allocations: 7.281 kB / 300.8 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1176, allocations: 50.42 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01948/0.1371, allocations: 17.48 MB / 368.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.1514, allocations: 6.204 MB / 374.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004627/0.1561, allocations: 115.5 kB / 375 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004785/0.1609, allocations: 1.119 MB / 376.2 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00836/0.1693, allocations: 1.834 MB / 378 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004327/0.1736, allocations: 0.8602 MB / 378.9 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.185, allocations: 4.349 MB / 383.2 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007683/0.1928, allocations: 3.754 MB / 387 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004753/0.1976, allocations: 2.028 MB / 389 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005843/0.2035, allocations: 2.502 MB / 391.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002047/0.2055, allocations: 332 kB / 391.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003379/0.2089, allocations: 0.5504 MB / 392.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002551/0.2115, allocations: 1.359 MB / 393.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002943/0.2145, allocations: 1.194 MB / 394.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.2259, allocations: 8.691 MB / 403.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.226, allocations: 4 kB / 403.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.226, allocations: 0 / 403.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004421/0.2264, allocations: 0 / 403.6 MB, free: 7.043 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01623/0.2427, allocations: 5.85 MB / 409.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.2427, allocations: 8.031 kB / 409.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002524/0.2453, allocations: 0.7288 MB / 410.2 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005577/0.2509, allocations: 1.07 MB / 411.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008312/0.2592, allocations: 3.563 MB / 414.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004453/0.2597, allocations: 422.7 kB / 415.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.2615, allocations: 0.5155 MB / 415.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01649/0.278, allocations: 6.989 MB / 422.7 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001369/0.2782, allocations: 7.906 kB / 422.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000519/0.2787, allocations: 220 kB / 423 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002541/0.279, allocations: 258.6 kB / 423.2 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2418/0.5208, allocations: 5.943 MB / 429.2 MB, free: 57.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04779/0.5686, allocations: 22.43 MB / 451.6 MB, free: 45.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007102/0.5758, allocations: 8.284 MB / 459.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/0.5864, allocations: 5.135 MB / 465 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.5865, allocations: 59.81 kB / 465.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=234): time 3.897e-06/0.5865, allocations: 0 / 465.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=259): time 0.02677/0.6132, allocations: 12.72 MB / 477.8 MB, free: 23.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.6134, allocations: 81.45 kB / 477.9 MB, free: 23.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004439/0.6178, allocations: 3.006 MB / 480.9 MB, free: 20.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004523/0.6183, allocations: 69.7 kB / 481 MB, free: 20.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.6196, allocations: 2.483 MB / 483.4 MB, free: 17.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008988/0.6205, allocations: 0.8858 MB / 484.3 MB, free: 16.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.6207, allocations: 68 kB / 484.4 MB, free: 16.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.6209, allocations: 432.9 kB / 484.8 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.623, allocations: 1.416 MB / 486.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002291/0.6253, allocations: 2.379 MB / 488.6 MB, free: 12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002282/0.6276, allocations: 1.831 MB / 490.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.487e-05/0.6276, allocations: 8 kB / 490.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=420) (initialization): time 0.007383/0.635, allocations: 4.935 MB / 495.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/0.6351, allocations: 20 kB / 495.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/0.6351, allocations: 28 kB / 495.4 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.6366, allocations: 0.6842 MB / 496.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002739/0.6393, allocations: 0.7683 MB / 496.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.6501, allocations: 9.618 MB / 0.4946 GB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/0.6537, allocations: 203.7 kB / 0.4948 GB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004572/0.6542, allocations: 144 kB / 0.495 GB, free: 9.121 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * 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 (386): * Single equations (assignments): 380 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,75.0%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003731/0.6579, allocations: 1.578 MB / 0.4965 GB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008755/0.6588, allocations: 343.8 kB / 0.4968 GB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007905/0.6667, allocations: 4.358 MB / 0.5011 GB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.99e-05/0.6667, allocations: 24 kB / 0.5011 GB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.6668, allocations: 8 kB / 0.5011 GB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.003e-05/0.6668, allocations: 15.95 kB / 0.5011 GB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01702/0.6838, allocations: 9.373 MB / 0.5103 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.6839, allocations: 9.094 kB / 0.5103 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001846/0.6857, allocations: 427.4 kB / 0.5107 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002331/0.6881, allocations: 0.8964 MB / 0.5116 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002343/0.6883, allocations: 67.97 kB / 0.5116 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01746/0.7058, allocations: 15.59 MB / 0.5269 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/0.7058, allocations: 8 kB / 0.5269 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/0.7174, allocations: 6.656 MB / 0.5334 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002375/0.7198, allocations: 0.7117 MB / 0.5341 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007612/0.7206, allocations: 59.98 kB / 0.5341 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/0.7223, allocations: 163.8 kB / 0.5343 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004425/0.7228, allocations: 189.5 kB / 0.5345 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.723, allocations: 71.98 kB / 0.5345 GB, free: 15.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003224/0.7262, allocations: 2.016 MB / 0.5365 GB, free: 13.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7262, allocations: 0 / 0.5365 GB, free: 13.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004101/0.7303, allocations: 1.023 MB / 0.5375 GB, free: 12.01 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (209): * Single equations (assignments): 202 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 20,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01073/0.741, allocations: 8.431 MB / 0.5457 GB, free: 3.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007195/0.7483, allocations: 4.326 MB / 0.55 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.7483, allocations: 0 / 0.55 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004804/0.7531, allocations: 2.837 MB / 0.5527 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004981/0.7582, allocations: 0.8806 MB / 0.5536 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2867/1.045, allocations: 52.18 MB / 0.6045 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00325/1.048, allocations: 3.521 MB / 0.608 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00286/1.051, allocations: 0.8105 MB / 0.6088 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0023/1.053, allocations: 2.101 MB / 0.6108 GB, free: 126 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/1.053, allocations: 3.938 kB / 0.6108 GB, free: 126 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.127/1.18, allocations: 85.91 MB / 0.6947 GB, free: 49.28 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/1.181, allocations: 257.5 kB / 0.695 GB, free: 48.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.105/5.286, allocations: 0 / 0.695 GB, free: 48.94 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat