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.002199/0.002199, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.001111/0.001111, allocations: 97.81 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.451e-05/3.456e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1238, allocations: 50.42 MB / 394.4 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5562, allocations: 131.5 MB / 0.5135 GB, free: 3.906 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.5566, allocations: 95.94 kB / 0.5136 GB, free: 3.812 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5955/1.152, allocations: 124.4 MB / 0.6351 GB, free: 70.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.045e-06/1.152, allocations: 4 kB / 0.6351 GB, free: 70.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006702/1.153, allocations: 147.7 kB / 0.6353 GB, free: 70.14 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.01859/1.171, allocations: 5.125 MB / 0.6403 GB, free: 64.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.645e-05/1.171, allocations: 11.97 kB / 0.6403 GB, free: 64.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003998/1.176, allocations: 0.7327 MB / 0.641 GB, free: 64.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007255/1.183, allocations: 1.004 MB / 0.642 GB, free: 63.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/1.197, allocations: 4.592 MB / 0.6465 GB, free: 58.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004648/1.198, allocations: 407.5 kB / 0.6469 GB, free: 58.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002403/1.2, allocations: 0.5194 MB / 0.6474 GB, free: 57.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02159/1.222, allocations: 6.831 MB / 0.654 GB, free: 50.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003872/1.222, allocations: 11.91 kB / 0.654 GB, free: 50.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002085/1.224, allocations: 224 kB / 0.6543 GB, free: 50.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002714/1.225, allocations: 246.6 kB / 0.6545 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01507/1.24, allocations: 5.419 MB / 0.6598 GB, free: 44.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05197/1.292, allocations: 22.54 MB / 0.6818 GB, free: 21.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009085/1.301, allocations: 8.274 MB / 0.6899 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003797/1.305, allocations: 2.109 MB / 0.6919 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01455/1.319, allocations: 6.302 MB / 0.6981 GB, free: 3.824 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.09e-05/1.319, allocations: 64.56 kB / 0.6981 GB, free: 3.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=227): time 6.312e-06/1.32, allocations: 0 / 0.6981 GB, free: 3.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=254): time 0.02649/1.346, allocations: 10.09 MB / 0.708 GB, free: 9.594 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/1.346, allocations: 77.41 kB / 0.7081 GB, free: 9.508 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009254/1.355, allocations: 2.725 MB / 0.7107 GB, free: 6.785 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007078/1.356, allocations: 65.7 kB / 0.7108 GB, free: 6.715 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002594/1.359, allocations: 2.487 MB / 0.7132 GB, free: 4.191 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001424/1.36, allocations: 0.8781 MB / 0.7141 GB, free: 3.301 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005161/1.361, allocations: 64 kB / 0.7141 GB, free: 3.238 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003601/1.361, allocations: 432.8 kB / 0.7146 GB, free: 2.809 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002623/1.364, allocations: 1.326 MB / 0.7159 GB, free: 1.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3049/1.669, allocations: 2.281 MB / 0.7181 GB, free: 81.69 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/1.673, allocations: 1.745 MB / 0.7198 GB, free: 81.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.525e-05/1.673, allocations: 11.98 kB / 0.7198 GB, free: 81.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01136/1.684, allocations: 4.76 MB / 0.7244 GB, free: 81.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.857e-05/1.684, allocations: 20.97 kB / 0.7245 GB, free: 81.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.669e-05/1.684, allocations: 30.28 kB / 0.7245 GB, free: 81.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001891/1.686, allocations: 0.7186 MB / 0.7252 GB, free: 81.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003541/1.69, allocations: 0.752 MB / 0.7259 GB, free: 81.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/1.7, allocations: 9.767 MB / 0.7355 GB, free: 76.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003635/1.704, allocations: 202.2 kB / 0.7357 GB, free: 76.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006269/1.704, allocations: 139.6 kB / 0.7358 GB, free: 76.18 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 (378): * Single equations (assignments): 372 * 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,72.2%) 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.0006927/1.705, allocations: 313.9 kB / 0.7361 GB, free: 76.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009041/1.706, allocations: 349.3 kB / 0.7364 GB, free: 76.07 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008319/1.714, allocations: 4.223 MB / 0.7406 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.842e-05/1.714, allocations: 25.23 kB / 0.7406 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.273e-05/1.714, allocations: 10.19 kB / 0.7406 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.179e-05/1.714, allocations: 13.11 kB / 0.7406 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01873/1.733, allocations: 9.194 MB / 0.7496 GB, free: 74.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/1.733, allocations: 7.547 kB / 0.7496 GB, free: 74.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/1.735, allocations: 409 kB / 0.75 GB, free: 74.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/1.737, allocations: 0.9646 MB / 0.7509 GB, free: 74.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/1.737, allocations: 65.45 kB / 0.751 GB, free: 74.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.751, allocations: 15.95 MB / 0.7666 GB, free: 65.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.751, allocations: 5.719 kB / 0.7666 GB, free: 65.68 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008916/1.76, allocations: 6.382 MB / 0.7728 GB, free: 63.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002021/1.762, allocations: 0.72 MB / 0.7735 GB, free: 62.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005872/1.763, allocations: 58.62 kB / 0.7736 GB, free: 62.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/1.764, allocations: 155.2 kB / 0.7737 GB, free: 62.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004802/1.765, allocations: 194.6 kB / 0.7739 GB, free: 62.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001694/1.765, allocations: 80.39 kB / 0.774 GB, free: 62.54 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003259/1.768, allocations: 2.057 MB / 0.776 GB, free: 61.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.768, allocations: 0 / 0.776 GB, free: 61.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004514/1.773, allocations: 1.088 MB / 0.777 GB, free: 61.62 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 (197): * Single equations (assignments): 190 * 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%) 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.008812/1.782, allocations: 8.384 MB / 0.7852 GB, free: 56.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005674/1.787, allocations: 4.142 MB / 0.7893 GB, free: 55.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/1.787, allocations: 3.625 kB / 0.7893 GB, free: 55.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003943/1.791, allocations: 2.769 MB / 0.792 GB, free: 53.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005113/1.796, allocations: 0.8832 MB / 0.7928 GB, free: 53.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02287/1.819, allocations: 9.618 MB / 0.8022 GB, free: 49.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003233/1.823, allocations: 3.537 MB / 0.8057 GB, free: 47.52 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003252/1.826, allocations: 0.7989 MB / 0.8065 GB, free: 46.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002809/1.829, allocations: 2.082 MB / 0.8085 GB, free: 45.03 MB / 442.7 MB Notification: Performance of SimCode: time 1.452e-06/1.829, allocations: 0 / 0.8085 GB, free: 45.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4333/2.262, allocations: 93.45 MB / 0.8998 GB, free: 89.64 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/2.262, allocations: 219.8 kB / 0.9 GB, free: 89.42 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.282/7.544, allocations: 1.688 kB / 0.9 GB, free: 89.42 MB / 474.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