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.001155/0.001155, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.303, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01676/0.3198, allocations: 17.27 MB / 426 MB, free: 188 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01006/0.3299, allocations: 5.698 MB / 431.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00296/0.3329, allocations: 103.6 kB / 431.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003635/0.3366, allocations: 1.308 MB / 433.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005245/0.3419, allocations: 1.63 MB / 434.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002823/0.3447, allocations: 1.098 MB / 435.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007568/0.3523, allocations: 5.231 MB / 441.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005888/0.3582, allocations: 4.311 MB / 445.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003199/0.3614, allocations: 2.192 MB / 447.6 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004063/0.3655, allocations: 2.635 MB / 450.2 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001403/0.3669, allocations: 0.6171 MB / 450.9 MB, free: 7.211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00252/0.3695, allocations: 0.8552 MB / 451.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001699/0.3712, allocations: 1.422 MB / 453.1 MB, free: 4.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003373/0.3746, allocations: 2.653 MB / 455.8 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008457/0.383, allocations: 8.16 MB / 464 MB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3831, allocations: 3.938 kB / 464 MB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3831, allocations: 4 kB / 464 MB, free: 10.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002008/0.3833, allocations: 4 kB / 464 MB, free: 10.06 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.0144/0.3977, allocations: 5.521 MB / 469.5 MB, free: 4.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.3978, allocations: 8.031 kB / 469.5 MB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000983/0.3988, allocations: 0.6028 MB / 470.1 MB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0053/0.4041, allocations: 1.052 MB / 471.1 MB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006214/0.4103, allocations: 3.025 MB / 474.2 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002351/0.4106, allocations: 307.9 kB / 474.5 MB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007662/0.4114, allocations: 400 kB / 474.9 MB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008961/0.4203, allocations: 5.213 MB / 480.1 MB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.187e-05/0.4204, allocations: 4 kB / 480.1 MB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003517/0.4208, allocations: 160 kB / 480.2 MB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001642/0.421, allocations: 176 kB / 480.4 MB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007423/0.4284, allocations: 4.458 MB / 484.9 MB, free: 4.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02472/0.4531, allocations: 16.74 MB / 0.4898 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007192/0.4604, allocations: 8.679 MB / 0.4983 GB, free: 9.906 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003915/0.4643, allocations: 2.119 MB / 0.5004 GB, free: 7.785 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009561/0.4739, allocations: 5.773 MB / 0.506 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.474, allocations: 51.88 kB / 0.5061 GB, free: 1.621 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 4.137e-06/0.474, allocations: 0 / 0.5061 GB, free: 1.621 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.01288/0.4869, allocations: 6.368 MB / 0.5123 GB, free: 11.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.487, allocations: 64.72 kB / 0.5124 GB, free: 11.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004593/0.4916, allocations: 2.319 MB / 0.5146 GB, free: 8.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000213/0.4918, allocations: 57.7 kB / 0.5147 GB, free: 8.617 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001443/0.4933, allocations: 1.909 MB / 0.5165 GB, free: 6.688 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006013/0.4939, allocations: 0.5849 MB / 0.5171 GB, free: 6.098 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007517/0.4946, allocations: 395.9 kB / 0.5175 GB, free: 5.703 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4947, allocations: 301.1 kB / 0.5178 GB, free: 5.406 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/0.4963, allocations: 0.8553 MB / 0.5186 GB, free: 4.547 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001995/0.4983, allocations: 1.571 MB / 0.5202 GB, free: 2.648 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003699/0.502, allocations: 2.578 MB / 0.5227 GB, free: 15.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.611e-05/0.5021, allocations: 4 kB / 0.5227 GB, free: 15.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005351/0.5075, allocations: 2.991 MB / 0.5256 GB, free: 12.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/0.5075, allocations: 18.81 kB / 0.5256 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.33e-05/0.5076, allocations: 24 kB / 0.5256 GB, free: 12.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004794/0.5081, allocations: 178.1 kB / 0.5258 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001957/0.51, allocations: 0.5304 MB / 0.5263 GB, free: 11.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.5124, allocations: 2.437 MB / 0.5287 GB, free: 9.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.5144, allocations: 115.8 kB / 0.5288 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001986/0.5146, allocations: 100.1 kB / 0.5289 GB, free: 9.172 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.002086/0.5167, allocations: 1.203 MB / 0.5301 GB, free: 7.957 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006338/0.5174, allocations: 262.4 kB / 0.5303 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004708/0.5221, allocations: 2.524 MB / 0.5328 GB, free: 5.117 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/0.5221, allocations: 16 kB / 0.5328 GB, free: 5.102 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.5222, allocations: 4 kB / 0.5328 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.5222, allocations: 7.969 kB / 0.5328 GB, free: 5.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2188/0.7409, allocations: 5.896 MB / 0.5386 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/0.741, allocations: 1.812 kB / 0.5386 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/0.7427, allocations: 291.4 kB / 0.5389 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.7439, allocations: 361.3 kB / 0.5392 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002381/0.7441, allocations: 39.3 kB / 0.5392 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006427/0.7506, allocations: 7.391 MB / 0.5465 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.7506, allocations: 3.797 kB / 0.5465 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/0.7558, allocations: 3.672 MB / 0.55 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.7572, allocations: 0.5044 MB / 0.5505 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005078/0.7577, allocations: 38.05 kB / 0.5506 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.759, allocations: 81.39 kB / 0.5507 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/0.7593, allocations: 119.3 kB / 0.5508 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.762e-05/0.7594, allocations: 46.86 kB / 0.5508 GB, free: 114.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002283/0.7617, allocations: 1.573 MB / 0.5524 GB, free: 113.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7618, allocations: 0 / 0.5524 GB, free: 113.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002455/0.7642, allocations: 0.6775 MB / 0.553 GB, free: 113.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.005571/0.7698, allocations: 4.302 MB / 0.5572 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003416/0.7733, allocations: 2.324 MB / 0.5595 GB, free: 110.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.7733, allocations: 5.281 kB / 0.5595 GB, free: 110.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.7753, allocations: 1.48 MB / 0.5609 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002985/0.7783, allocations: 0.6154 MB / 0.5615 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03454/0.8129, allocations: 24.46 MB / 0.5854 GB, free: 84.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001894/0.8148, allocations: 2.681 MB / 0.588 GB, free: 82.06 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001768/0.8166, allocations: 0.5513 MB / 0.5886 GB, free: 81.51 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001595/0.8182, allocations: 1.473 MB / 0.59 GB, free: 80.04 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.8182, allocations: 0 / 0.59 GB, free: 80.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0948/0.9131, allocations: 60.07 MB / 0.6487 GB, free: 20.51 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/15.22, allocations: 12.36 kB / 0.6487 GB, free: 20.5 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.0.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