Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 118.3 kB / 17.78 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.001303/0.001303, allocations: 201.2 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 63.89 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3081, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02742/0.3356, allocations: 20.93 MB / 429.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01513/0.3508, allocations: 6.171 MB / 435.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004899/0.3558, allocations: 139.4 kB / 436 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005872/0.3617, allocations: 1.362 MB / 437.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007855/0.3696, allocations: 1.898 MB / 439.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004924/0.3746, allocations: 1.271 MB / 440.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009937/0.3845, allocations: 6.167 MB / 446.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01098/0.3956, allocations: 5.446 MB / 452.2 MB, free: 5.883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006027/0.4017, allocations: 2.846 MB / 455 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007125/0.4088, allocations: 3.499 MB / 458.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002753/0.4116, allocations: 0.7852 MB / 459.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004076/0.4157, allocations: 1.086 MB / 460.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003566/0.4194, allocations: 1.948 MB / 462.3 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00729/0.4267, allocations: 3.361 MB / 465.7 MB, free: 8.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01654/0.4433, allocations: 10.39 MB / 476.1 MB, free: 13.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.4434, allocations: 0 / 476.1 MB, free: 13.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4434, allocations: 0 / 476.1 MB, free: 13.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003217/0.4437, allocations: 0 / 476.1 MB, free: 13.89 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02044/0.4641, allocations: 6.768 MB / 482.8 MB, free: 7.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.4642, allocations: 12.03 kB / 482.9 MB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002429/0.4667, allocations: 0.7038 MB / 483.6 MB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006169/0.4729, allocations: 1.043 MB / 484.6 MB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009481/0.4824, allocations: 3.609 MB / 488.2 MB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005169/0.483, allocations: 386.6 kB / 488.6 MB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002017/0.485, allocations: 0.5115 MB / 489.1 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01844/0.5034, allocations: 6.775 MB / 495.9 MB, free: 9.848 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001738/0.5037, allocations: 11.89 kB / 495.9 MB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009803/0.5047, allocations: 212 kB / 496.1 MB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002803/0.5049, allocations: 246.2 kB / 496.3 MB, free: 9.387 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01493/0.5199, allocations: 5.748 MB / 0.4903 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0455/0.5654, allocations: 20.98 MB / 0.5108 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.5763, allocations: 8.809 MB / 0.5194 GB, free: 4.332 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004481/0.5809, allocations: 2.198 MB / 0.5216 GB, free: 2.125 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01532/0.5962, allocations: 6.204 MB / 0.5276 GB, free: 11.72 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.727e-05/0.5963, allocations: 52.56 kB / 0.5277 GB, free: 11.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 6.472e-06/0.5964, allocations: 0 / 0.5277 GB, free: 11.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02812/0.6245, allocations: 10.51 MB / 0.5379 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.6246, allocations: 73.41 kB / 0.538 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2376/0.8622, allocations: 2.921 MB / 0.5408 GB, free: 120.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004724/0.8628, allocations: 62.83 kB / 0.5409 GB, free: 120.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001638/0.8644, allocations: 2.437 MB / 0.5433 GB, free: 119.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007208/0.8651, allocations: 0.8004 MB / 0.5441 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000715/0.8659, allocations: 0.5208 MB / 0.5446 GB, free: 118.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.941e-05/0.8659, allocations: 304.9 kB / 0.5449 GB, free: 118.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.8677, allocations: 1.27 MB / 0.5461 GB, free: 118.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.8698, allocations: 2.173 MB / 0.5482 GB, free: 116.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004038/0.8738, allocations: 3.671 MB / 0.5518 GB, free: 114.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.016e-05/0.8739, allocations: 7.875 kB / 0.5518 GB, free: 114.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006449/0.8803, allocations: 4.482 MB / 0.5562 GB, free: 112.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/0.8804, allocations: 19.34 kB / 0.5562 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.628e-05/0.8804, allocations: 27.41 kB / 0.5562 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.8816, allocations: 0.5398 MB / 0.5568 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002409/0.884, allocations: 0.6767 MB / 0.5574 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006934/0.8909, allocations: 10.35 MB / 0.5675 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002723/0.8937, allocations: 187.7 kB / 0.5677 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003895/0.8941, allocations: 131.8 kB / 0.5678 GB, free: 102.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (345): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002686/0.8968, allocations: 1.513 MB / 0.5693 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008099/0.8976, allocations: 337.7 kB / 0.5696 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/0.9036, allocations: 3.91 MB / 0.5735 GB, free: 97.49 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.9036, allocations: 24 kB / 0.5735 GB, free: 97.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.9036, allocations: 12 kB / 0.5735 GB, free: 97.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/0.9037, allocations: 11.95 kB / 0.5735 GB, free: 97.44 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/0.9153, allocations: 8.495 MB / 0.5818 GB, free: 88.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.988e-06/0.9154, allocations: 4 kB / 0.5818 GB, free: 88.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/0.9169, allocations: 383.9 kB / 0.5822 GB, free: 88.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001689/0.9186, allocations: 0.7403 MB / 0.5829 GB, free: 87.67 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/0.9188, allocations: 63.97 kB / 0.583 GB, free: 87.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.9299, allocations: 16.77 MB / 0.5993 GB, free: 69.75 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.93, allocations: 4 kB / 0.5993 GB, free: 69.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007761/0.9378, allocations: 5.596 MB / 0.6048 GB, free: 64.01 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001682/0.9395, allocations: 0.6608 MB / 0.6054 GB, free: 63.33 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007337/0.9402, allocations: 55.98 kB / 0.6055 GB, free: 63.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/0.9421, allocations: 135.9 kB / 0.6056 GB, free: 63.14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004462/0.9426, allocations: 169.6 kB / 0.6058 GB, free: 62.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/0.9427, allocations: 63.98 kB / 0.6058 GB, free: 62.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00298/0.9457, allocations: 1.984 MB / 0.6078 GB, free: 60.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9457, allocations: 0 / 0.6078 GB, free: 60.93 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004117/0.9499, allocations: 0.9355 MB / 0.6087 GB, free: 60 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008378/0.9583, allocations: 6.301 MB / 0.6149 GB, free: 53.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005797/0.9641, allocations: 3.984 MB / 0.6187 GB, free: 49.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.9641, allocations: 3.938 kB / 0.6187 GB, free: 49.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003758/0.9679, allocations: 2.678 MB / 0.6214 GB, free: 46.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004608/0.9726, allocations: 0.8644 MB / 0.6222 GB, free: 45.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05828/1.031, allocations: 33.48 MB / 0.6549 GB, free: 11.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004332/1.035, allocations: 3.299 MB / 0.6581 GB, free: 7.773 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002725/1.038, allocations: 0.7619 MB / 0.6589 GB, free: 7.008 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002743/1.041, allocations: 1.948 MB / 0.6608 GB, free: 5.059 MB / 462.1 MB Notification: Performance of SimCode: time 1.352e-06/1.041, allocations: 0 / 0.6608 GB, free: 5.059 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1746/1.215, allocations: 82.16 MB / 0.741 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.13/18.35, allocations: 8.359 kB / 0.741 GB, free: 3.539 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches