Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",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.001237/0.001237, allocations: 180.8 kB / 16.39 MB, free: 5.762 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.287/1.287, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008594/0.0008594, allocations: 102.1 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002483/0.0002483, allocations: 11.92 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2541, allocations: 50.39 MB / 401.6 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.6236, allocations: 120.4 MB / 0.5098 GB, free: 101.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.6239, allocations: 101.2 kB / 0.5099 GB, free: 101.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5546/1.179, allocations: 160.9 MB / 0.667 GB, free: 62.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.173e-06/1.179, allocations: 0 / 0.667 GB, free: 62.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002571/1.179, allocations: 104.9 kB / 0.6671 GB, free: 62.12 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.0109/1.19, allocations: 4.387 MB / 0.6714 GB, free: 60.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/1.19, allocations: 11.34 kB / 0.6714 GB, free: 60.64 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002118/1.192, allocations: 0.6067 MB / 0.672 GB, free: 60.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005773/1.198, allocations: 0.9262 MB / 0.6729 GB, free: 60.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009557/1.207, allocations: 3.839 MB / 0.6766 GB, free: 59.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002552/1.208, allocations: 306.7 kB / 0.6769 GB, free: 59.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/1.209, allocations: 395.8 kB / 0.6773 GB, free: 59.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008802/1.217, allocations: 5.147 MB / 0.6823 GB, free: 59.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.497e-05/1.218, allocations: 2.953 kB / 0.6823 GB, free: 59.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003603/1.218, allocations: 172.8 kB / 0.6825 GB, free: 59.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/1.218, allocations: 172.9 kB / 0.6827 GB, free: 59.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006353/1.224, allocations: 4.216 MB / 0.6868 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02326/1.248, allocations: 16.88 MB / 0.7033 GB, free: 55.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00617/1.254, allocations: 8.408 MB / 0.7115 GB, free: 49.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006721/1.261, allocations: 4.24 MB / 0.7156 GB, free: 47.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/1.261, allocations: 54.72 kB / 0.7157 GB, free: 47.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=167): time 3.146e-06/1.261, allocations: 2.219 kB / 0.7157 GB, free: 47.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=171): time 0.01158/1.272, allocations: 6.517 MB / 0.722 GB, free: 44.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/1.272, allocations: 71.16 kB / 0.7221 GB, free: 44.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002791/1.275, allocations: 1.984 MB / 0.724 GB, free: 43.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/1.275, allocations: 55.48 kB / 0.7241 GB, free: 43.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/1.276, allocations: 1.821 MB / 0.7259 GB, free: 42.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003993/1.277, allocations: 0.5836 MB / 0.7264 GB, free: 41.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.747e-05/1.277, allocations: 46.06 kB / 0.7265 GB, free: 41.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/1.277, allocations: 390 kB / 0.7268 GB, free: 41.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/1.278, allocations: 0.8688 MB / 0.7277 GB, free: 41.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/1.28, allocations: 1.532 MB / 0.7292 GB, free: 39.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/1.281, allocations: 1.145 MB / 0.7303 GB, free: 39.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/1.281, allocations: 9.562 kB / 0.7303 GB, free: 39.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.003854/1.285, allocations: 2.91 MB / 0.7332 GB, free: 38.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/1.285, allocations: 15.09 kB / 0.7332 GB, free: 38.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/1.285, allocations: 24.84 kB / 0.7332 GB, free: 38.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/1.285, allocations: 124.3 kB / 0.7333 GB, free: 38.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001855/1.287, allocations: 0.551 MB / 0.7339 GB, free: 38.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/1.288, allocations: 1.821 MB / 0.7356 GB, free: 36.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/1.29, allocations: 122.4 kB / 0.7358 GB, free: 36.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/1.29, allocations: 97.28 kB / 0.7358 GB, free: 36.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (272): * Single equations (assignments): 270 * 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: 1 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002033/1.292, allocations: 1.193 MB / 0.737 GB, free: 35.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/1.293, allocations: 243.5 kB / 0.7372 GB, free: 35.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003863/1.297, allocations: 2.573 MB / 0.7398 GB, free: 34.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/1.297, allocations: 15.22 kB / 0.7398 GB, free: 34.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/1.297, allocations: 6.672 kB / 0.7398 GB, free: 34.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/1.297, allocations: 14.41 kB / 0.7398 GB, free: 34.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008937/1.306, allocations: 6.05 MB / 0.7457 GB, free: 31.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/1.306, allocations: 3.25 kB / 0.7457 GB, free: 31.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/1.307, allocations: 319.8 kB / 0.746 GB, free: 31.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007315/1.308, allocations: 315.6 kB / 0.7463 GB, free: 31.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/1.308, allocations: 41.16 kB / 0.7463 GB, free: 31.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004708/1.313, allocations: 6.418 MB / 0.7526 GB, free: 26.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.313, allocations: 7.938 kB / 0.7526 GB, free: 26.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005183/1.318, allocations: 3.904 MB / 0.7564 GB, free: 24.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002244/1.32, allocations: 0.5038 MB / 0.7569 GB, free: 24.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004092/1.32, allocations: 37.03 kB / 0.757 GB, free: 24.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/1.322, allocations: 97.55 kB / 0.7571 GB, free: 24 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/1.322, allocations: 127.2 kB / 0.7572 GB, free: 23.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/1.322, allocations: 51.47 kB / 0.7572 GB, free: 23.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002615/1.325, allocations: 1.504 MB / 0.7587 GB, free: 23.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.325, allocations: 0 / 0.7587 GB, free: 23.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00271/1.327, allocations: 0.737 MB / 0.7594 GB, free: 23.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 140 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00547/1.333, allocations: 5.307 MB / 0.7646 GB, free: 19.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003221/1.336, allocations: 2.348 MB / 0.7669 GB, free: 17.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.336, allocations: 0 / 0.7669 GB, free: 17.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/1.338, allocations: 1.502 MB / 0.7684 GB, free: 16.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/1.341, allocations: 0.5651 MB / 0.7689 GB, free: 16.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04026/1.381, allocations: 35.14 MB / 0.8032 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002449/1.383, allocations: 2.737 MB / 0.8059 GB, free: 12.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002289/1.386, allocations: 0.5587 MB / 0.8064 GB, free: 11.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002089/1.388, allocations: 1.456 MB / 0.8079 GB, free: 10.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.052e-06/1.388, allocations: 0 / 0.8079 GB, free: 10.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3168/1.705, allocations: 61.67 MB / 0.8681 GB, free: 80.53 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/1.705, allocations: 241.8 kB / 0.8683 GB, free: 80.29 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.743/5.447, allocations: 0 / 0.8683 GB, free: 80.29 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat