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.001133/0.001133, allocations: 114 kB / 17.06 MB, free: 6.016 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.001367/0.001367, allocations: 191 kB / 18 MB, free: 5.098 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.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3058, allocations: 49.43 MB / 400.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01803/0.3239, allocations: 16.66 MB / 416.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.336, allocations: 5.408 MB / 422.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003622/0.3396, allocations: 103.7 kB / 422.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004265/0.3439, allocations: 1.285 MB / 423.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006075/0.3501, allocations: 1.658 MB / 425.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002934/0.353, allocations: 1.045 MB / 426.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006988/0.36, allocations: 5.114 MB / 431.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006883/0.367, allocations: 4.311 MB / 435.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003459/0.3705, allocations: 2.192 MB / 438 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004147/0.3746, allocations: 2.596 MB / 440.6 MB, free: 248 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001479/0.3761, allocations: 0.6133 MB / 441.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002513/0.3787, allocations: 0.8395 MB / 442.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001377/0.3801, allocations: 1.426 MB / 443.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003897/0.384, allocations: 2.633 MB / 446.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009144/0.3931, allocations: 8.117 MB / 454.2 MB, free: 2.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.3932, allocations: 7.938 kB / 454.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3932, allocations: 0 / 454.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001945/0.3934, allocations: 0 / 454.3 MB, free: 2.562 MB / 366.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.01433/0.4077, allocations: 5.493 MB / 459.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.4078, allocations: 11.89 kB / 459.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001107/0.4089, allocations: 0.6066 MB / 460.4 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00522/0.4142, allocations: 1.009 MB / 461.4 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007068/0.4212, allocations: 2.981 MB / 464.4 MB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.4215, allocations: 308 kB / 464.7 MB, free: 8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008741/0.4224, allocations: 396 kB / 465 MB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009045/0.4315, allocations: 5.209 MB / 470.3 MB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-05/0.4316, allocations: 15.88 kB / 470.3 MB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000365/0.432, allocations: 168 kB / 470.4 MB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.4321, allocations: 168 kB / 470.6 MB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007688/0.4398, allocations: 4.466 MB / 475.1 MB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02624/0.4661, allocations: 16.63 MB / 491.7 MB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007514/0.4736, allocations: 8.433 MB / 0.4884 GB, free: 2.918 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002871/0.4765, allocations: 1.69 MB / 0.4901 GB, free: 1.227 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008348/0.4849, allocations: 4.974 MB / 0.4949 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/0.485, allocations: 59.86 kB / 0.495 GB, free: 11.99 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 3.626e-06/0.485, allocations: 0 / 0.495 GB, free: 11.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.01202/0.497, allocations: 6.184 MB / 0.501 GB, free: 5.656 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.4971, allocations: 72.7 kB / 0.5011 GB, free: 5.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/0.5005, allocations: 2.286 MB / 0.5033 GB, free: 3.258 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.5008, allocations: 53.7 kB / 0.5034 GB, free: 3.199 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001278/0.502, allocations: 1.897 MB / 0.5052 GB, free: 1.281 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004887/0.5025, allocations: 0.5733 MB / 0.5058 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005537/0.5031, allocations: 395.9 kB / 0.5062 GB, free: 316 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.296e-05/0.5032, allocations: 305.1 kB / 0.5064 GB, free: 8 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.5046, allocations: 0.8436 MB / 0.5073 GB, free: 15.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001872/0.5065, allocations: 1.555 MB / 0.5088 GB, free: 13.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003517/0.51, allocations: 2.562 MB / 0.5113 GB, free: 10.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.336e-05/0.5101, allocations: 15.92 kB / 0.5113 GB, free: 10.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004774/0.5148, allocations: 2.889 MB / 0.5141 GB, free: 7.461 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.5149, allocations: 16 kB / 0.5141 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.529e-05/0.5149, allocations: 20 kB / 0.5142 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003321/0.5153, allocations: 126.2 kB / 0.5143 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001941/0.5172, allocations: 0.5421 MB / 0.5148 GB, free: 6.754 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/0.5191, allocations: 2.001 MB / 0.5168 GB, free: 4.617 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/0.521, allocations: 107.9 kB / 0.5169 GB, free: 4.512 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.5212, allocations: 96 kB / 0.517 GB, free: 4.418 MB / 446.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 (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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002667/0.5238, allocations: 1.196 MB / 0.5181 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006785/0.5245, allocations: 262.3 kB / 0.5184 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004338/0.5289, allocations: 2.441 MB / 0.5208 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.5289, allocations: 16 kB / 0.5208 GB, free: 448 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.5289, allocations: 4 kB / 0.5208 GB, free: 444 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.5289, allocations: 11.91 kB / 0.5208 GB, free: 432 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009591/0.5385, allocations: 5.775 MB / 0.5264 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5386, allocations: 4 kB / 0.5264 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/0.5399, allocations: 291.8 kB / 0.5267 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007809/0.5407, allocations: 302.3 kB / 0.527 GB, free: 9.918 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.5408, allocations: 44.05 kB / 0.527 GB, free: 9.875 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006119/0.5469, allocations: 6.973 MB / 0.5339 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.5469, allocations: 8 kB / 0.5339 GB, free: 2.477 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2147/0.7617, allocations: 3.562 MB / 0.5373 GB, free: 127.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/0.7632, allocations: 0.501 MB / 0.5378 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004002/0.7636, allocations: 36.69 kB / 0.5379 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.7648, allocations: 83.59 kB / 0.5379 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.7651, allocations: 117.5 kB / 0.5381 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.7653, allocations: 42.02 kB / 0.5381 GB, free: 127 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002431/0.7677, allocations: 1.554 MB / 0.5396 GB, free: 126.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7677, allocations: 0 / 0.5396 GB, free: 126.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002103/0.7698, allocations: 0.6714 MB / 0.5403 GB, free: 126.5 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 (132): * Single equations (assignments): 129 * 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,5,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.00474/0.7746, allocations: 4.195 MB / 0.5444 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003271/0.7778, allocations: 2.279 MB / 0.5466 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.7779, allocations: 0 / 0.5466 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.7797, allocations: 1.443 MB / 0.548 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/0.7821, allocations: 0.5922 MB / 0.5486 GB, free: 122.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03284/0.8149, allocations: 24.17 MB / 0.5722 GB, free: 102.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001877/0.8169, allocations: 2.669 MB / 0.5748 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001645/0.8185, allocations: 0.5552 MB / 0.5753 GB, free: 99.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001468/0.82, allocations: 1.472 MB / 0.5768 GB, free: 98.08 MB / 462.1 MB Notification: Performance of SimCode: time 1.563e-06/0.82, allocations: 3.5 kB / 0.5768 GB, free: 98.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09249/0.9125, allocations: 59.49 MB / 0.6349 GB, free: 39.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/15.08, allocations: 15.64 kB / 0.6349 GB, free: 39.22 MB / 462.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches