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.0007966/0.0007966, allocations: 87.11 kB / 16.31 MB, free: 6.449 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.0008426/0.0008426, allocations: 176.3 kB / 17.21 MB, free: 6.32 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.401/1.401, allocations: 223.3 MB / 241.2 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002628, allocations: 8.531 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1039, allocations: 50.42 MB / 351.4 MB, free: 3.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01521/0.1191, allocations: 14.65 MB / 366 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.1292, allocations: 5.046 MB / 371.1 MB, free: 132 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003364/0.1326, allocations: 95.62 kB / 371.1 MB, free: 36 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2234/0.356, allocations: 0.9363 MB / 372.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005494/0.3615, allocations: 1.324 MB / 373.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002902/0.3644, allocations: 0.7036 MB / 374.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009713/0.3742, allocations: 4.943 MB / 379.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005321/0.3795, allocations: 2.737 MB / 381.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003913/0.3835, allocations: 1.577 MB / 383.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004946/0.3885, allocations: 2.035 MB / 385.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001251/0.3898, allocations: 251.4 kB / 385.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002711/0.3925, allocations: 459.6 kB / 386.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.3938, allocations: 0.9743 MB / 387.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002994/0.3968, allocations: 0.9037 MB / 388 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008589/0.4054, allocations: 6.587 MB / 394.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.4054, allocations: 0 / 394.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.178e-06/0.4055, allocations: 0 / 394.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003075/0.4058, allocations: 1.219 kB / 394.6 MB, free: 3.816 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.01274/0.4185, allocations: 4.602 MB / 399.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.4186, allocations: 15.97 kB / 399.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001729/0.4203, allocations: 0.6011 MB / 399.8 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005331/0.4257, allocations: 0.9978 MB / 400.8 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006016/0.4317, allocations: 2.751 MB / 403.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003487/0.4321, allocations: 305.7 kB / 403.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001078/0.4332, allocations: 403.4 kB / 404.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01107/0.4442, allocations: 5.202 MB / 409.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.953e-05/0.4444, allocations: 3.984 kB / 409.4 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003857/0.4448, allocations: 165.6 kB / 409.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001756/0.4449, allocations: 172 kB / 409.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008619/0.4536, allocations: 4.47 MB / 414.2 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03519/0.4888, allocations: 16.93 MB / 431.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007592/0.4964, allocations: 8.425 MB / 439.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002994/0.4995, allocations: 1.714 MB / 441.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0088/0.5083, allocations: 5.04 MB / 446.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.5083, allocations: 51.88 kB / 446.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=157): time 3.927e-06/0.5084, allocations: 0 / 446.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=160): time 0.01242/0.5208, allocations: 6.25 MB / 452.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.5209, allocations: 68.72 kB / 452.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004096/0.525, allocations: 2.286 MB / 455 MB, free: 9.496 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.5251, allocations: 57.64 kB / 455.1 MB, free: 9.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.5266, allocations: 1.839 MB / 456.9 MB, free: 7.578 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005644/0.5272, allocations: 0.5517 MB / 457.4 MB, free: 7.031 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.5273, allocations: 44 kB / 457.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.5275, allocations: 402.2 kB / 457.9 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.529, allocations: 0.8475 MB / 458.7 MB, free: 5.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/0.5311, allocations: 1.569 MB / 460.3 MB, free: 3.844 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001991/0.5331, allocations: 1.13 MB / 461.4 MB, free: 2.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.03e-05/0.5331, allocations: 8 kB / 461.4 MB, free: 2.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005351/0.5385, allocations: 2.904 MB / 464.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.101e-05/0.5385, allocations: 16.03 kB / 464.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.542e-05/0.5386, allocations: 30.39 kB / 464.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003557/0.539, allocations: 129.7 kB / 464.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002019/0.541, allocations: 0.546 MB / 465.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/0.5429, allocations: 1.815 MB / 466.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002253/0.5452, allocations: 115.9 kB / 467 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002736/0.5455, allocations: 99.98 kB / 467.1 MB, free: 12.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (269): * Single equations (assignments): 267 * 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.002535/0.548, allocations: 1.196 MB / 468.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006537/0.5487, allocations: 237.1 kB / 468.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004795/0.5535, allocations: 2.487 MB / 471 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/0.5535, allocations: 16 kB / 471 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/0.5535, allocations: 8 kB / 471 MB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/0.5536, allocations: 11.95 kB / 471 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.5644, allocations: 5.836 MB / 476.9 MB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.5644, allocations: 4.031 kB / 476.9 MB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.5657, allocations: 302 kB / 477.2 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008949/0.5666, allocations: 322.2 kB / 477.5 MB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/0.5667, allocations: 35.98 kB / 477.5 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006505/0.5733, allocations: 6.391 MB / 483.9 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.5733, allocations: 4.031 kB / 483.9 MB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006021/0.5793, allocations: 3.609 MB / 487.5 MB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001509/0.5809, allocations: 0.4902 MB / 488 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007612/0.5816, allocations: 36 kB / 488 MB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/0.5831, allocations: 91.92 kB / 488.1 MB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003/0.5834, allocations: 121.1 kB / 488.3 MB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.5836, allocations: 47.98 kB / 488.3 MB, free: 6.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003246/0.5868, allocations: 1.549 MB / 489.8 MB, free: 5.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5868, allocations: 0 / 489.8 MB, free: 5.434 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003039/0.5899, allocations: 0.6797 MB / 490.5 MB, free: 4.754 MB / 398.1 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.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 (132): * Single equations (assignments): 129 * 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.006223/0.5961, allocations: 4.224 MB / 494.8 MB, free: 452 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003888/0.6, allocations: 2.293 MB / 497 MB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.6, allocations: 4 kB / 497 MB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002209/0.6023, allocations: 1.455 MB / 498.5 MB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.6051, allocations: 0.5841 MB / 499.1 MB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04173/0.6468, allocations: 20.69 MB / 0.5076 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003264/0.6501, allocations: 2.665 MB / 0.5102 GB, free: 3.188 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002372/0.6525, allocations: 0.5552 MB / 0.5107 GB, free: 2.629 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002247/0.6548, allocations: 1.464 MB / 0.5122 GB, free: 1.164 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.6548, allocations: 0 / 0.5122 GB, free: 1.164 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2864/0.9412, allocations: 56.96 MB / 0.5678 GB, free: 127.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.9415, allocations: 250.5 kB / 0.568 GB, free: 127.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.125/4.066, allocations: 0 / 0.568 GB, free: 127.6 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