Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.00155/0.00155, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001769/0.001769, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 59.89 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2686, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.02123/0.2899, allocations: 17.27 MB / 426.1 MB, free: 188 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.3018, allocations: 5.694 MB / 431.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0033/0.3052, allocations: 103.6 kB / 431.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003713/0.3089, allocations: 1.28 MB / 433.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006105/0.3151, allocations: 1.576 MB / 434.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003399/0.3185, allocations: 1.096 MB / 435.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007993/0.3265, allocations: 5.219 MB / 441 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006178/0.3327, allocations: 4.319 MB / 445.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00344/0.3362, allocations: 2.184 MB / 447.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004305/0.3405, allocations: 2.631 MB / 450.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00173/0.3423, allocations: 0.6172 MB / 450.8 MB, free: 7.309 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002686/0.345, allocations: 0.8591 MB / 451.6 MB, free: 6.449 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001578/0.3466, allocations: 1.418 MB / 453 MB, free: 5.027 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003824/0.3504, allocations: 2.649 MB / 455.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.3606, allocations: 8.156 MB / 463.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.047e-05/0.3606, allocations: 3.984 kB / 463.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3606, allocations: 7.875 kB / 463.9 MB, free: 10.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002033/0.3609, allocations: 0 / 463.9 MB, free: 10.17 MB / 382.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.01479/0.3757, allocations: 5.528 MB / 469.4 MB, free: 4.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3757, allocations: 8.031 kB / 469.4 MB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001126/0.3768, allocations: 0.6028 MB / 470 MB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00569/0.3825, allocations: 1.052 MB / 471.1 MB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006763/0.3893, allocations: 3.017 MB / 474.1 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002982/0.3897, allocations: 304 kB / 474.4 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.3907, allocations: 403.9 kB / 474.8 MB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.4012, allocations: 5.213 MB / 480 MB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.653e-05/0.4013, allocations: 11.94 kB / 480 MB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004134/0.4017, allocations: 164 kB / 480.1 MB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001898/0.4019, allocations: 176 kB / 480.3 MB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008891/0.4108, allocations: 4.458 MB / 484.8 MB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03313/0.444, allocations: 16.72 MB / 0.4897 GB, free: 3.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009779/0.4538, allocations: 8.691 MB / 0.4982 GB, free: 10 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004745/0.4586, allocations: 2.115 MB / 0.5003 GB, free: 7.887 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.4703, allocations: 5.777 MB / 0.5059 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.601e-05/0.4704, allocations: 51.88 kB / 0.506 GB, free: 1.719 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 4.539e-06/0.4705, allocations: 0 / 0.506 GB, free: 1.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.01428/0.4847, allocations: 6.364 MB / 0.5122 GB, free: 11.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.4848, allocations: 68.72 kB / 0.5123 GB, free: 11.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004744/0.4896, allocations: 2.315 MB / 0.5145 GB, free: 8.781 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002727/0.4899, allocations: 53.7 kB / 0.5146 GB, free: 8.723 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001715/0.4916, allocations: 1.913 MB / 0.5165 GB, free: 6.789 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007312/0.4924, allocations: 0.581 MB / 0.517 GB, free: 6.203 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008764/0.4933, allocations: 395.9 kB / 0.5174 GB, free: 5.809 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4934, allocations: 301.1 kB / 0.5177 GB, free: 5.512 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.4951, allocations: 0.8553 MB / 0.5185 GB, free: 4.652 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002249/0.4974, allocations: 1.571 MB / 0.5201 GB, free: 2.754 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004153/0.5015, allocations: 2.582 MB / 0.5226 GB, free: 15.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.273e-05/0.5016, allocations: 8 kB / 0.5226 GB, free: 15.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005945/0.5075, allocations: 2.983 MB / 0.5255 GB, free: 12.83 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.5076, allocations: 22.64 kB / 0.5255 GB, free: 12.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-05/0.5077, allocations: 20 kB / 0.5255 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004819/0.5081, allocations: 177.9 kB / 0.5257 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/0.5103, allocations: 0.5226 MB / 0.5262 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002913/0.5132, allocations: 2.449 MB / 0.5286 GB, free: 9.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.5152, allocations: 107.8 kB / 0.5287 GB, free: 9.383 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002499/0.5155, allocations: 104 kB / 0.5288 GB, free: 9.281 MB / 462.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 (266): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002668/0.5181, allocations: 1.199 MB / 0.53 GB, free: 8.074 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007164/0.5189, allocations: 258.4 kB / 0.5302 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005145/0.524, allocations: 2.535 MB / 0.5327 GB, free: 5.227 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.5241, allocations: 16 kB / 0.5327 GB, free: 5.211 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/0.5241, allocations: 4 kB / 0.5327 GB, free: 5.207 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.5241, allocations: 7.969 kB / 0.5327 GB, free: 5.199 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2329/0.7571, allocations: 5.896 MB / 0.5385 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.7571, allocations: 1.531 kB / 0.5385 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.7587, allocations: 284.8 kB / 0.5388 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001169/0.7599, allocations: 363.8 kB / 0.5391 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002203/0.7601, allocations: 40.39 kB / 0.5391 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006135/0.7663, allocations: 7.389 MB / 0.5464 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.7663, allocations: 3.969 kB / 0.5464 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005308/0.7716, allocations: 3.682 MB / 0.55 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.7728, allocations: 0.5084 MB / 0.5505 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003844/0.7732, allocations: 31.91 kB / 0.5505 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.7744, allocations: 80.58 kB / 0.5506 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002999/0.7747, allocations: 128.2 kB / 0.5507 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.782e-05/0.7748, allocations: 46.78 kB / 0.5507 GB, free: 115.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002071/0.7769, allocations: 1.564 MB / 0.5523 GB, free: 114.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7769, allocations: 7.25 kB / 0.5523 GB, free: 114.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002141/0.779, allocations: 0.6722 MB / 0.5529 GB, free: 114.4 MB / 462.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 (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005221/0.7843, allocations: 4.299 MB / 0.5571 GB, free: 112.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.7876, allocations: 2.327 MB / 0.5594 GB, free: 111.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.7876, allocations: 0 / 0.5594 GB, free: 111.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.7896, allocations: 1.481 MB / 0.5608 GB, free: 110.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.7925, allocations: 0.6083 MB / 0.5614 GB, free: 110.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03528/0.8278, allocations: 24.45 MB / 0.5853 GB, free: 85.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003137/0.831, allocations: 2.678 MB / 0.5879 GB, free: 83.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00234/0.8334, allocations: 0.5552 MB / 0.5885 GB, free: 82.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001945/0.8354, allocations: 1.476 MB / 0.5899 GB, free: 81.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.784e-06/0.8354, allocations: 0 / 0.5899 GB, free: 81.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1102/0.9456, allocations: 60.07 MB / 0.6486 GB, free: 21.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/16.38, allocations: 4.297 kB / 0.6486 GB, free: 21.72 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches