Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002748/0.002747, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.148/2.148, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001116, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.017e-05/4.036e-05, allocations: 3.984 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 47.57 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4858/0.5887, allocations: 119.4 MB / 488.6 MB, free: 6.133 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003432/0.5891, allocations: 86.31 kB / 488.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.887/1.476, allocations: 160.5 MB / 0.634 GB, free: 48.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.476, allocations: 0 / 0.634 GB, free: 48.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004268/1.477, allocations: 99.88 kB / 0.6341 GB, free: 48.05 MB / 410.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.01622/1.493, allocations: 3.91 MB / 0.6379 GB, free: 44.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/1.493, allocations: 12.03 kB / 0.6379 GB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002775/1.496, allocations: 0.6064 MB / 0.6385 GB, free: 43.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007895/1.504, allocations: 0.9158 MB / 0.6394 GB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01586/1.52, allocations: 3.806 MB / 0.6431 GB, free: 38.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004348/1.52, allocations: 300.1 kB / 0.6434 GB, free: 38.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001697/1.522, allocations: 399.9 kB / 0.6438 GB, free: 37.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0166/1.538, allocations: 5.032 MB / 0.6487 GB, free: 32.76 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001836/1.539, allocations: 4 kB / 0.6487 GB, free: 32.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001145/1.54, allocations: 172 kB / 0.6489 GB, free: 32.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002073/1.54, allocations: 172 kB / 0.649 GB, free: 32.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/1.553, allocations: 4.026 MB / 0.653 GB, free: 28.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04362/1.597, allocations: 16.96 MB / 0.6695 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009935/1.607, allocations: 8.267 MB / 0.6776 GB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00433/1.611, allocations: 1.619 MB / 0.6792 GB, free: 0 / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01499/1.626, allocations: 4.829 MB / 0.6839 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.319e-05/1.627, allocations: 51.83 kB / 0.684 GB, free: 10.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=150): time 4.879e-06/1.627, allocations: 0 / 0.684 GB, free: 10.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=153): time 0.01352/1.64, allocations: 4.499 MB / 0.6883 GB, free: 6.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/1.64, allocations: 64.72 kB / 0.6884 GB, free: 6.246 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005789/1.646, allocations: 1.98 MB / 0.6903 GB, free: 4.238 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003697/1.646, allocations: 53.7 kB / 0.6904 GB, free: 4.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/1.648, allocations: 1.752 MB / 0.6921 GB, free: 2.406 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009523/1.649, allocations: 0.5238 MB / 0.6926 GB, free: 1.875 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/1.65, allocations: 40 kB / 0.6927 GB, free: 1.836 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002788/1.65, allocations: 390.9 kB / 0.693 GB, free: 1.445 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/1.652, allocations: 0.75 MB / 0.6938 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3117/1.964, allocations: 1.423 MB / 0.6952 GB, free: 70.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003048/1.967, allocations: 1.016 MB / 0.6961 GB, free: 70.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-05/1.967, allocations: 10.5 kB / 0.6962 GB, free: 70.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=265) (initialization): time 0.00742/1.975, allocations: 2.487 MB / 0.6986 GB, free: 70.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.486e-05/1.975, allocations: 14.36 kB / 0.6986 GB, free: 70.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.105e-05/1.975, allocations: 26.06 kB / 0.6986 GB, free: 70.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000494/1.975, allocations: 123.2 kB / 0.6987 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004362/1.98, allocations: 0.5303 MB / 0.6993 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002318/1.982, allocations: 1.814 MB / 0.701 GB, free: 69.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003349/1.985, allocations: 122.6 kB / 0.7011 GB, free: 69.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005303/1.986, allocations: 95.61 kB / 0.7012 GB, free: 69.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * 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 (259): * Single equations (assignments): 257 * 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.0005988/1.987, allocations: 237.5 kB / 0.7015 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007677/1.987, allocations: 242.1 kB / 0.7017 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006516/1.994, allocations: 2.268 MB / 0.7039 GB, free: 68.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.136e-05/1.994, allocations: 17.5 kB / 0.7039 GB, free: 68.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/1.994, allocations: 3.875 kB / 0.7039 GB, free: 68.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-05/1.994, allocations: 7.828 kB / 0.7039 GB, free: 68.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/2.008, allocations: 5.543 MB / 0.7093 GB, free: 68.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/2.008, allocations: 2.594 kB / 0.7094 GB, free: 68.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002684/2.011, allocations: 293 kB / 0.7096 GB, free: 68.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001586/2.013, allocations: 312.1 kB / 0.7099 GB, free: 68.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003249/2.013, allocations: 36.88 kB / 0.71 GB, free: 68.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00877/2.022, allocations: 6.288 MB / 0.7161 GB, free: 64.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/2.022, allocations: 3.781 kB / 0.7161 GB, free: 64.25 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008582/2.031, allocations: 3.402 MB / 0.7194 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/2.033, allocations: 498.8 kB / 0.7199 GB, free: 63.49 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008951/2.034, allocations: 36.78 kB / 0.7199 GB, free: 63.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002738/2.036, allocations: 96.17 kB / 0.72 GB, free: 63.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000633/2.037, allocations: 119.2 kB / 0.7201 GB, free: 63.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/2.037, allocations: 42.94 kB / 0.7202 GB, free: 63.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004392/2.042, allocations: 1.496 MB / 0.7216 GB, free: 63.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.51e-07/2.042, allocations: 0 / 0.7216 GB, free: 63.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004235/2.046, allocations: 0.7262 MB / 0.7224 GB, free: 63.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (126): * Single equations (assignments): 123 * 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.008987/2.055, allocations: 4.743 MB / 0.727 GB, free: 61.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004961/2.06, allocations: 2.067 MB / 0.729 GB, free: 61.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/2.06, allocations: 2.938 kB / 0.729 GB, free: 61.38 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003285/2.063, allocations: 1.355 MB / 0.7303 GB, free: 61.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004792/2.068, allocations: 0.5686 MB / 0.7309 GB, free: 61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02079/2.089, allocations: 6.442 MB / 0.7372 GB, free: 59.56 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003462/2.092, allocations: 2.669 MB / 0.7398 GB, free: 58.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003257/2.096, allocations: 1.496 MB / 0.7412 GB, free: 58.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.373e-06/2.096, allocations: 0 / 0.7412 GB, free: 58.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.065/6.161, allocations: 111.7 MB / 0.8503 GB, free: 7.676 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat