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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 94.28 kB / 16.3 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 188.5 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002958/0.0002959, allocations: 12.67 kB / 300.8 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1191, allocations: 50.41 MB / 351.2 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01438/0.1335, allocations: 13.41 MB / 364.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1441, allocations: 5.2 MB / 369.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.1475, allocations: 91.62 kB / 369.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2115/0.359, allocations: 0.933 MB / 370.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00696/0.366, allocations: 1.442 MB / 372.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002581/0.3686, allocations: 0.7108 MB / 373 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007889/0.3765, allocations: 3.387 MB / 376.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004279/0.3808, allocations: 2.736 MB / 379.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003722/0.3845, allocations: 1.545 MB / 380.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00471/0.3893, allocations: 1.857 MB / 382.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001065/0.3903, allocations: 253.8 kB / 382.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002533/0.3929, allocations: 440.7 kB / 383.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00109/0.394, allocations: 0.9369 MB / 384.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001787/0.3958, allocations: 0.906 MB / 385.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008074/0.4039, allocations: 6.562 MB / 391.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.4039, allocations: 2.375 kB / 391.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4039, allocations: 0 / 391.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.4042, allocations: 0 / 391.6 MB, free: 6.43 MB / 302.1 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.01292/0.4172, allocations: 4.587 MB / 396.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.4172, allocations: 9.094 kB / 396.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002594/0.4198, allocations: 0.6034 MB / 396.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006223/0.4261, allocations: 1.001 MB / 397.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006639/0.4327, allocations: 2.76 MB / 400.6 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/0.433, allocations: 305.8 kB / 400.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009878/0.434, allocations: 402.1 kB / 401.3 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01029/0.4443, allocations: 5.179 MB / 406.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.167e-05/0.4444, allocations: 0 / 406.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004103/0.4449, allocations: 166.7 kB / 406.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001798/0.445, allocations: 172 kB / 406.8 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009211/0.4543, allocations: 4.466 MB / 411.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03093/0.4852, allocations: 16.92 MB / 428.2 MB, free: 7.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007559/0.4928, allocations: 8.416 MB / 436.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009018/0.5019, allocations: 4.25 MB / 440.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.459e-05/0.502, allocations: 48.56 kB / 440.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=167): time 4.869e-06/0.502, allocations: 0 / 440.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=171): time 0.01436/0.5164, allocations: 6.586 MB / 447.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.5165, allocations: 69.41 kB / 447.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003892/0.5204, allocations: 2.258 MB / 449.8 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002485/0.5206, allocations: 53.7 kB / 449.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.5222, allocations: 1.832 MB / 451.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005979/0.5228, allocations: 0.5913 MB / 452.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.5229, allocations: 44 kB / 452.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.5231, allocations: 390.3 kB / 452.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.5247, allocations: 0.8866 MB / 453.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/0.5267, allocations: 1.586 MB / 455.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0018/0.5285, allocations: 1.158 MB / 456.3 MB, free: 9.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.5286, allocations: 4 kB / 456.3 MB, free: 9.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005083/0.5336, allocations: 2.977 MB / 459.3 MB, free: 6.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.5337, allocations: 12 kB / 459.3 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-05/0.5338, allocations: 24.53 kB / 459.4 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003456/0.5341, allocations: 129.7 kB / 459.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002008/0.5361, allocations: 0.5655 MB / 460.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/0.5378, allocations: 1.821 MB / 461.9 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002253/0.5401, allocations: 120 kB / 462 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001906/0.5403, allocations: 96 kB / 462.1 MB, free: 3.812 MB / 366.1 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 () * 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.002737/0.543, allocations: 1.2 MB / 463.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006819/0.5437, allocations: 245 kB / 463.5 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004557/0.5483, allocations: 2.604 MB / 466.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/0.5483, allocations: 16 kB / 466.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.5483, allocations: 4 kB / 466.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.5483, allocations: 7.969 kB / 466.2 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/0.5596, allocations: 6.085 MB / 472.2 MB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.5596, allocations: 4 kB / 472.2 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.561, allocations: 323.8 kB / 472.6 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000882/0.5619, allocations: 313 kB / 472.9 MB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.562, allocations: 47.92 kB / 472.9 MB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006625/0.5687, allocations: 6.456 MB / 479.4 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.5687, allocations: 4 kB / 479.4 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006866/0.5756, allocations: 3.938 MB / 483.3 MB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/0.5773, allocations: 0.5019 MB / 483.8 MB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/0.5777, allocations: 43.98 kB / 483.9 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.5789, allocations: 98.34 kB / 484 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003718/0.5793, allocations: 133 kB / 484.1 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.5794, allocations: 51.98 kB / 484.1 MB, free: 13.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002907/0.5823, allocations: 1.521 MB / 485.7 MB, free: 11.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.32e-07/0.5823, allocations: 0 / 485.7 MB, free: 11.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004728/0.5871, allocations: 0.6836 MB / 486.3 MB, free: 10.8 MB / 398.1 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.007665/0.5948, allocations: 5.137 MB / 491.5 MB, free: 5.531 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004104/0.5989, allocations: 2.383 MB / 493.9 MB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.599, allocations: 0 / 493.9 MB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002572/0.6016, allocations: 1.52 MB / 495.4 MB, free: 1.559 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003372/0.605, allocations: 0.5569 MB / 495.9 MB, free: 1.004 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0564/0.6614, allocations: 35.51 MB / 0.519 GB, free: 11.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002766/0.6642, allocations: 2.749 MB / 0.5217 GB, free: 9.109 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002152/0.6664, allocations: 0.5591 MB / 0.5222 GB, free: 8.547 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001868/0.6682, allocations: 1.447 MB / 0.5236 GB, free: 7.102 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6683, allocations: 4 kB / 0.5236 GB, free: 7.098 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3219/0.9901, allocations: 57.2 MB / 0.5795 GB, free: 119.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/0.9903, allocations: 252.6 kB / 0.5797 GB, free: 119.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.319/4.309, allocations: 0 / 0.5797 GB, free: 119.4 MB / 446.1 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