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.001062/0.001062, allocations: 176.4 kB / 8.346 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.434/1.434, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0009511/0.000951, allocations: 90.19 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.785e-05/1.802e-05, allocations: 4 kB / 337.2 MB, free: 9.898 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.5237, allocations: 119.7 MB / 0.4954 GB, free: 6.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.5241, allocations: 95.94 kB / 0.4955 GB, free: 6.816 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6185/1.143, allocations: 158.8 MB / 0.6505 GB, free: 55.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.503e-06/1.143, allocations: 7.938 kB / 0.6506 GB, free: 55.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003843/1.143, allocations: 99.08 kB / 0.6506 GB, free: 55.32 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.01291/1.156, allocations: 3.924 MB / 0.6545 GB, free: 51.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/1.156, allocations: 8.031 kB / 0.6545 GB, free: 51.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005747/1.162, allocations: 0.9158 MB / 0.6554 GB, free: 50.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01004/1.172, allocations: 3.812 MB / 0.6591 GB, free: 46.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/1.172, allocations: 131.9 kB / 0.6592 GB, free: 46.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/1.173, allocations: 235.9 kB / 0.6595 GB, free: 46.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01/1.183, allocations: 3.788 MB / 0.6632 GB, free: 42.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/1.195, allocations: 4.433 MB / 0.6675 GB, free: 37.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/1.195, allocations: 7.844 kB / 0.6675 GB, free: 37.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005307/1.196, allocations: 4 kB / 0.6675 GB, free: 37.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/1.196, allocations: 172 kB / 0.6677 GB, free: 37.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02768/1.223, allocations: 16.16 MB / 0.6834 GB, free: 21.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005763/1.229, allocations: 8.196 MB / 0.6914 GB, free: 11.95 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/1.232, allocations: 1.552 MB / 0.693 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007954/1.24, allocations: 4.743 MB / 0.6976 GB, free: 5.527 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/1.24, allocations: 51.88 kB / 0.6976 GB, free: 5.465 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 5.09e-06/1.24, allocations: 0 / 0.6976 GB, free: 5.465 MB / 426.7 MB Notification: Performance of matching and sorting (n=156): time 0.009121/1.249, allocations: 4.728 MB / 0.7023 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/1.249, allocations: 72.66 kB / 0.7023 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00284/1.252, allocations: 1.637 MB / 0.7039 GB, free: 14.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002269/1.252, allocations: 29.7 kB / 0.704 GB, free: 14.85 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/1.253, allocations: 1.85 MB / 0.7058 GB, free: 12.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000596/1.254, allocations: 0.5197 MB / 0.7063 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.738e-05/1.254, allocations: 0 / 0.7063 GB, free: 12.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/1.254, allocations: 390 kB / 0.7066 GB, free: 12.06 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/1.255, allocations: 0.7148 MB / 0.7073 GB, free: 11.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/1.257, allocations: 1.38 MB / 0.7087 GB, free: 9.652 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/1.259, allocations: 1.134 MB / 0.7098 GB, free: 8.516 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.949e-05/1.259, allocations: 8 kB / 0.7098 GB, free: 8.508 MB / 442.7 MB Notification: Performance of matching and sorting (n=267) (initialization): time 0.004643/1.264, allocations: 2.592 MB / 0.7123 GB, free: 5.879 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/1.264, allocations: 15.98 kB / 0.7123 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/1.264, allocations: 24 kB / 0.7124 GB, free: 5.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002904/1.264, allocations: 117.7 kB / 0.7125 GB, free: 5.719 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002098/1.266, allocations: 0.5383 MB / 0.713 GB, free: 5.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/1.268, allocations: 1.732 MB / 0.7147 GB, free: 3.332 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002266/1.27, allocations: 83.8 kB / 0.7148 GB, free: 3.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/1.27, allocations: 92 kB / 0.7149 GB, free: 3.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 259 * 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.0003745/1.271, allocations: 176.2 kB / 0.715 GB, free: 2.98 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004004/1.275, allocations: 2.139 MB / 0.7171 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007111/1.276, allocations: 229.2 kB / 0.7173 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2825/1.558, allocations: 2.263 MB / 0.7196 GB, free: 76.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.035e-05/1.558, allocations: 14.72 kB / 0.7196 GB, free: 76.73 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/1.558, allocations: 7.438 kB / 0.7196 GB, free: 76.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/1.558, allocations: 8.375 kB / 0.7196 GB, free: 76.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/1.568, allocations: 5.049 MB / 0.7245 GB, free: 76.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.569, allocations: 2.75 kB / 0.7245 GB, free: 76.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/1.57, allocations: 294.9 kB / 0.7248 GB, free: 76.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007777/1.571, allocations: 301.7 kB / 0.7251 GB, free: 76.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/1.571, allocations: 20.48 kB / 0.7251 GB, free: 76.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004824/1.576, allocations: 6.047 MB / 0.731 GB, free: 72.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.576, allocations: 3.938 kB / 0.731 GB, free: 72.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005535/1.581, allocations: 3.397 MB / 0.7343 GB, free: 71.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/1.583, allocations: 471 kB / 0.7348 GB, free: 71.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000446/1.583, allocations: 11.75 kB / 0.7348 GB, free: 71.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/1.584, allocations: 67.56 kB / 0.7349 GB, free: 71.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/1.585, allocations: 123.6 kB / 0.735 GB, free: 71.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/1.585, allocations: 43.72 kB / 0.735 GB, free: 71.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002153/1.587, allocations: 1.217 MB / 0.7362 GB, free: 71.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 4e-07/1.587, allocations: 0 / 0.7362 GB, free: 71.47 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002621/1.59, allocations: 0.6161 MB / 0.7368 GB, free: 71.47 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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.005833/1.595, allocations: 4.621 MB / 0.7413 GB, free: 69.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003069/1.598, allocations: 1.979 MB / 0.7433 GB, free: 69.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.599, allocations: 0 / 0.7433 GB, free: 69.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/1.6, allocations: 1.296 MB / 0.7445 GB, free: 69.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/1.603, allocations: 441 kB / 0.7449 GB, free: 69.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01521/1.618, allocations: 6.325 MB / 0.7511 GB, free: 68.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002245/1.62, allocations: 2.739 MB / 0.7538 GB, free: 67.33 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002336/1.623, allocations: 0.5235 MB / 0.7543 GB, free: 67.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002512/1.625, allocations: 1.46 MB / 0.7557 GB, free: 67.28 MB / 442.7 MB Notification: Performance of SimCode: time 3.567e-06/1.625, allocations: 4 kB / 0.7557 GB, free: 67.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09005/1.715, allocations: 51.19 MB / 0.8057 GB, free: 61.43 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/1.716, allocations: 185.5 kB / 0.8059 GB, free: 61.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.432/5.148, allocations: 5.766 kB / 0.8059 GB, free: 61.23 MB / 442.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