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.002293/0.002299, allocations: 183.9 kB / 16.4 MB, free: 5.75 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.042/2.042, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001111/0.001111, allocations: 93.73 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003911, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3279, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.01948/0.3474, allocations: 13.36 MB / 388 MB, free: 35.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01222/0.3597, allocations: 5.222 MB / 393.2 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003467/0.3632, allocations: 83.62 kB / 393.3 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004114/0.3674, allocations: 0.9367 MB / 394.2 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006255/0.3737, allocations: 1.443 MB / 395.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003383/0.3771, allocations: 0.7168 MB / 396.4 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007664/0.3848, allocations: 3.393 MB / 399.8 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004447/0.3893, allocations: 2.691 MB / 402.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002727/0.392, allocations: 1.545 MB / 404 MB, free: 19.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003426/0.3955, allocations: 1.863 MB / 405.9 MB, free: 17.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009488/0.3965, allocations: 252 kB / 406.1 MB, free: 17.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002035/0.3986, allocations: 439.7 kB / 406.6 MB, free: 16.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001104/0.3997, allocations: 0.9383 MB / 407.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.4011, allocations: 0.9057 MB / 408.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008185/0.4093, allocations: 6.544 MB / 415 MB, free: 8.371 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4093, allocations: 0 / 415 MB, free: 8.371 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4093, allocations: 3.938 kB / 415 MB, free: 8.367 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002161/0.4096, allocations: 4 kB / 415 MB, free: 8.363 MB / 298.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.01631/0.4259, allocations: 4.583 MB / 419.5 MB, free: 3.703 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.426, allocations: 8.031 kB / 419.6 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001903/0.4279, allocations: 0.6103 MB / 420.2 MB, free: 3.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007857/0.4358, allocations: 0.9977 MB / 421.2 MB, free: 2.066 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007827/0.4436, allocations: 2.641 MB / 423.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004714/0.4442, allocations: 316.1 kB / 424.1 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.4455, allocations: 391.9 kB / 424.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01728/0.4628, allocations: 5.174 MB / 429.7 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001536/0.463, allocations: 11.84 kB / 429.7 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006929/0.4637, allocations: 160 kB / 429.8 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002714/0.464, allocations: 180 kB / 430 MB, free: 9.066 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01504/0.4791, allocations: 4.443 MB / 434.5 MB, free: 4.605 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04548/0.5246, allocations: 16.91 MB / 451.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/0.5373, allocations: 8.436 MB / 459.8 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.5489, allocations: 4.24 MB / 464 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.645e-05/0.549, allocations: 56.55 kB / 464.1 MB, free: 5.273 MB / 346.7 MB Notification: Performance of pre-optimization done (n=167): time 8.165e-06/0.549, allocations: 7.938 kB / 464.1 MB, free: 5.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=171): time 0.02199/0.571, allocations: 6.561 MB / 470.7 MB, free: 14.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.5712, allocations: 73.34 kB / 470.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005139/0.5763, allocations: 2.27 MB / 473 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003476/0.5767, allocations: 53.7 kB / 473.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001725/0.5784, allocations: 1.718 MB / 474.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008614/0.5793, allocations: 0.5815 MB / 475.4 MB, free: 9.816 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.5795, allocations: 44 kB / 475.4 MB, free: 9.773 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002612/0.5798, allocations: 399.2 kB / 475.8 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002731/0.5825, allocations: 0.8905 MB / 476.7 MB, free: 8.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003449/0.586, allocations: 1.576 MB / 478.3 MB, free: 6.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003354/0.5894, allocations: 1.165 MB / 479.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.015e-05/0.5894, allocations: 8 kB / 479.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.007736/0.5972, allocations: 2.819 MB / 482.3 MB, free: 2.566 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/0.5973, allocations: 12 kB / 482.3 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.45e-05/0.5973, allocations: 24 kB / 482.3 MB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004816/0.5978, allocations: 126.2 kB / 482.4 MB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004187/0.602, allocations: 0.5733 MB / 483 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.6046, allocations: 1.838 MB / 484.8 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002936/0.6076, allocations: 120 kB / 484.9 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003378/0.6079, allocations: 95.98 kB / 485 MB, free: 15.64 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (276): * Single equations (assignments): 274 * 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.003325/0.6113, allocations: 1.194 MB / 486.2 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000715/0.612, allocations: 245 kB / 486.5 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007599/0.6196, allocations: 2.605 MB / 489.1 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.597e-05/0.6197, allocations: 20 kB / 489.1 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.6197, allocations: 4 kB / 489.1 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.336e-05/0.6198, allocations: 7.969 kB / 489.1 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01639/0.6362, allocations: 6.081 MB / 495.2 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.6362, allocations: 3.953 kB / 495.2 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002789/0.639, allocations: 323.8 kB / 495.5 MB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.6405, allocations: 318.2 kB / 495.8 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002134/0.6408, allocations: 47.98 kB / 495.9 MB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/0.6512, allocations: 6.429 MB / 0.4905 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.6512, allocations: 4 kB / 0.4905 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/0.6618, allocations: 3.944 MB / 0.4944 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/0.6636, allocations: 0.5019 MB / 0.4949 GB, free: 9.137 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005326/0.6642, allocations: 40 kB / 0.4949 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/0.6664, allocations: 96.05 kB / 0.495 GB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004839/0.6669, allocations: 125.1 kB / 0.4951 GB, free: 8.879 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001733/0.6671, allocations: 51.98 kB / 0.4952 GB, free: 8.828 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003834/0.6709, allocations: 1.536 MB / 0.4967 GB, free: 7.277 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6709, allocations: 0 / 0.4967 GB, free: 7.277 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003803/0.6748, allocations: 0.6836 MB / 0.4973 GB, free: 6.594 MB / 394.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,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.01136/0.6862, allocations: 5.126 MB / 0.5023 GB, free: 1.328 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2784/0.9646, allocations: 2.368 MB / 0.5046 GB, free: 123.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.9646, allocations: 2.438 kB / 0.5046 GB, free: 123.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003567/0.9682, allocations: 1.515 MB / 0.5061 GB, free: 123.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004028/0.9723, allocations: 0.5497 MB / 0.5067 GB, free: 123.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06343/1.036, allocations: 35.32 MB / 0.5412 GB, free: 94.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002829/1.039, allocations: 2.674 MB / 0.5438 GB, free: 91.53 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003012/1.042, allocations: 1.491 MB / 0.5452 GB, free: 90.04 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/1.042, allocations: 0 / 0.5452 GB, free: 90.04 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.892/4.934, allocations: 110.5 MB / 0.6531 GB, free: 11.35 MB / 426.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