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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001319, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 221.5 MB / 230.3 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008728/0.0008728, allocations: 96.22 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.195e-05/2.198e-05, allocations: 4 kB / 337.2 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4358/0.5563, allocations: 130.8 MB / 0.5062 GB, free: 11.88 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.5567, allocations: 87.95 kB / 0.5063 GB, free: 11.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6013/1.158, allocations: 122.8 MB / 0.6262 GB, free: 81.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.158, allocations: 0 / 0.6262 GB, free: 81.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007554/1.159, allocations: 143.7 kB / 0.6264 GB, free: 81.25 MB / 426.7 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.01855/1.177, allocations: 5.13 MB / 0.6314 GB, free: 76.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/1.177, allocations: 12.02 kB / 0.6314 GB, free: 76.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00718/1.185, allocations: 1.004 MB / 0.6324 GB, free: 75.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01557/1.2, allocations: 4.593 MB / 0.6369 GB, free: 70.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004523/1.201, allocations: 176.7 kB / 0.637 GB, free: 70.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002544/1.203, allocations: 319.8 kB / 0.6373 GB, free: 69.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01315/1.217, allocations: 5.106 MB / 0.6423 GB, free: 64.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/1.234, allocations: 6.033 MB / 0.6482 GB, free: 58.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003349/1.235, allocations: 15.83 kB / 0.6482 GB, free: 58.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002016/1.237, allocations: 8 kB / 0.6482 GB, free: 58.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002512/1.237, allocations: 250.6 kB / 0.6485 GB, free: 58.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04135/1.278, allocations: 21.48 MB / 0.6695 GB, free: 36.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007664/1.286, allocations: 8.197 MB / 0.6775 GB, free: 27.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003408/1.289, allocations: 2.021 MB / 0.6794 GB, free: 25.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01229/1.302, allocations: 6.157 MB / 0.6854 GB, free: 19.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/1.302, allocations: 64.5 kB / 0.6855 GB, free: 19.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 6.081e-06/1.302, allocations: 0 / 0.6855 GB, free: 19.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=258): time 0.0172/1.319, allocations: 8.701 MB / 0.694 GB, free: 10.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/1.319, allocations: 81.38 kB / 0.6941 GB, free: 10.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005163/1.324, allocations: 2.202 MB / 0.6962 GB, free: 7.996 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006356/1.325, allocations: 25.7 kB / 0.6963 GB, free: 7.965 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001772/1.327, allocations: 2.492 MB / 0.6987 GB, free: 5.441 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001198/1.328, allocations: 0.8506 MB / 0.6995 GB, free: 4.578 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004906/1.329, allocations: 0 / 0.6995 GB, free: 4.578 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002561/1.329, allocations: 436.9 kB / 0.6999 GB, free: 4.145 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002092/1.331, allocations: 1.272 MB / 0.7012 GB, free: 2.871 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002462/1.333, allocations: 2.221 MB / 0.7034 GB, free: 228 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/1.337, allocations: 1.817 MB / 0.7051 GB, free: 14.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.455e-05/1.337, allocations: 11.95 kB / 0.7051 GB, free: 14.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.0102/1.347, allocations: 4.555 MB / 0.7096 GB, free: 9.738 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/1.347, allocations: 21.59 kB / 0.7096 GB, free: 9.719 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-05/1.348, allocations: 32 kB / 0.7096 GB, free: 9.688 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/1.349, allocations: 0.7121 MB / 0.7103 GB, free: 8.957 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/1.353, allocations: 0.7605 MB / 0.7111 GB, free: 8.195 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3643/1.717, allocations: 9.341 MB / 0.7202 GB, free: 86.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/1.721, allocations: 138.1 kB / 0.7203 GB, free: 86.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005776/1.722, allocations: 146.3 kB / 0.7205 GB, free: 86.39 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (382): * Single equations (assignments): 376 * 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%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005917/1.722, allocations: 196.6 kB / 0.7207 GB, free: 86.29 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007911/1.73, allocations: 3.847 MB / 0.7244 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009758/1.731, allocations: 323.4 kB / 0.7247 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007606/1.739, allocations: 4.134 MB / 0.7288 GB, free: 85.47 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.082e-05/1.739, allocations: 26.44 kB / 0.7288 GB, free: 85.47 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/1.739, allocations: 11.86 kB / 0.7288 GB, free: 85.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-05/1.739, allocations: 14.5 kB / 0.7288 GB, free: 85.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02226/1.761, allocations: 8.466 MB / 0.7371 GB, free: 84.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/1.761, allocations: 3.781 kB / 0.7371 GB, free: 84.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002029/1.763, allocations: 425.4 kB / 0.7375 GB, free: 84.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002819/1.766, allocations: 0.9391 MB / 0.7384 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002945/1.766, allocations: 31.56 kB / 0.7384 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/1.782, allocations: 15.33 MB / 0.7534 GB, free: 76.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.958e-06/1.782, allocations: 14.41 kB / 0.7534 GB, free: 76.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009751/1.791, allocations: 6.295 MB / 0.7596 GB, free: 74.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/1.794, allocations: 0.6826 MB / 0.7602 GB, free: 74.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008508/1.794, allocations: 23.25 kB / 0.7603 GB, free: 74.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002015/1.796, allocations: 120.4 kB / 0.7604 GB, free: 74.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005421/1.797, allocations: 194.4 kB / 0.7606 GB, free: 74.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001762/1.797, allocations: 71.89 kB / 0.7606 GB, free: 74.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003245/1.8, allocations: 1.621 MB / 0.7622 GB, free: 74.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.583e-06/1.8, allocations: 0 / 0.7622 GB, free: 74.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005823/1.806, allocations: 0.9511 MB / 0.7631 GB, free: 74.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 192 * 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,75.0%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01059/1.817, allocations: 8.204 MB / 0.7711 GB, free: 71.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006065/1.823, allocations: 3.977 MB / 0.775 GB, free: 69.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.823, allocations: 4.906 kB / 0.775 GB, free: 69.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003851/1.827, allocations: 2.672 MB / 0.7776 GB, free: 67.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004243/1.831, allocations: 0.6904 MB / 0.7783 GB, free: 67.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02144/1.853, allocations: 9.34 MB / 0.7874 GB, free: 64.01 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003098/1.856, allocations: 3.524 MB / 0.7909 GB, free: 62.71 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00302/1.859, allocations: 0.7756 MB / 0.7916 GB, free: 62.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002338/1.861, allocations: 2.072 MB / 0.7937 GB, free: 60.89 MB / 442.7 MB Notification: Performance of SimCode: time 2.185e-06/1.861, allocations: 0 / 0.7937 GB, free: 60.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1361/1.997, allocations: 79.24 MB / 0.871 GB, free: 14.93 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/1.998, allocations: 187.9 kB / 0.8712 GB, free: 14.73 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.415/6.413, allocations: 0 / 0.8712 GB, free: 14.73 MB / 458.7 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