Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.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.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",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.001544/0.001545, allocations: 108.8 kB / 16.92 MB, free: 5.75 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.001814/0.001815, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.298/2.298, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 50.52 kB / 300.8 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1581, allocations: 49.44 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.3118/0.47, allocations: 23.78 MB / 374 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01985/0.4899, allocations: 6.498 MB / 380.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007402/0.4973, allocations: 159.2 kB / 380.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007967/0.5053, allocations: 1.578 MB / 382.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01233/0.5178, allocations: 2.145 MB / 384.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007174/0.525, allocations: 1.419 MB / 385.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0177/0.5427, allocations: 8 MB / 393.8 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01778/0.5606, allocations: 7.3 MB / 401.1 MB, free: 496 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009698/0.5703, allocations: 3.82 MB / 404.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01087/0.5812, allocations: 4.421 MB / 409.3 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004579/0.5859, allocations: 1.094 MB / 410.4 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006574/0.5925, allocations: 1.305 MB / 411.7 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005191/0.5977, allocations: 2.439 MB / 414.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0119/0.6097, allocations: 4.522 MB / 418.7 MB, free: 16 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02556/0.6353, allocations: 14.1 MB / 432.8 MB, free: 2.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.6353, allocations: 0 / 432.8 MB, free: 2.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.6354, allocations: 4 kB / 432.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004357/0.6358, allocations: 0 / 432.8 MB, free: 2.164 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.04416/0.68, allocations: 8.837 MB / 441.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/0.6801, allocations: 16.03 kB / 441.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004242/0.6843, allocations: 0.9487 MB / 442.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01881/0.7032, allocations: 1.676 MB / 444.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01618/0.7194, allocations: 4.693 MB / 449 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001144/0.7206, allocations: 0.5162 MB / 449.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00349/0.7241, allocations: 0.6817 MB / 450.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03723/0.7614, allocations: 9.452 MB / 459.6 MB, free: 7.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004206/0.7619, allocations: 23.88 kB / 459.6 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002671/0.7646, allocations: 276 kB / 459.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000538/0.7652, allocations: 330.2 kB / 460.2 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0287/0.7939, allocations: 8.086 MB / 468.3 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09701/0.891, allocations: 28.77 MB / 497.1 MB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.031/0.9221, allocations: 16.59 MB / 0.5016 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01144/0.9336, allocations: 2.942 MB / 0.5045 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03336/0.967, allocations: 7.737 MB / 0.5121 GB, free: 4.098 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.9672, allocations: 64.61 kB / 0.5121 GB, free: 4.023 MB / 430.1 MB Notification: Performance of pre-optimization done (n=259): time 8.856e-06/0.9673, allocations: 0 / 0.5121 GB, free: 4.023 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.03889/1.006, allocations: 11.01 MB / 0.5229 GB, free: 8.684 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.006, allocations: 81.5 kB / 0.5229 GB, free: 8.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0114/1.018, allocations: 3.373 MB / 0.5262 GB, free: 5.223 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007159/1.019, allocations: 73.7 kB / 0.5263 GB, free: 5.145 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003769/1.022, allocations: 3.035 MB / 0.5293 GB, free: 2.086 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.024, allocations: 0.9138 MB / 0.5302 GB, free: 1.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00233/1.026, allocations: 0.5896 MB / 0.5307 GB, free: 0.582 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/1.027, allocations: 309.1 kB / 0.531 GB, free: 284 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2872/1.314, allocations: 1.387 MB / 0.5324 GB, free: 140.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00336/1.317, allocations: 2.436 MB / 0.5348 GB, free: 139.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005476/1.323, allocations: 4.087 MB / 0.5388 GB, free: 137.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.22e-05/1.323, allocations: 9.219 kB / 0.5388 GB, free: 137.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01226/1.335, allocations: 4.698 MB / 0.5434 GB, free: 135.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.985e-05/1.335, allocations: 23.72 kB / 0.5434 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.647e-05/1.335, allocations: 36.03 kB / 0.5434 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/1.336, allocations: 404.2 kB / 0.5438 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003378/1.34, allocations: 0.7873 MB / 0.5446 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006781/1.347, allocations: 7.961 MB / 0.5523 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003253/1.35, allocations: 159.2 kB / 0.5525 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000436/1.35, allocations: 154.6 kB / 0.5526 GB, free: 128.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00423/1.354, allocations: 2.071 MB / 0.5547 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009249/1.355, allocations: 370.7 kB / 0.555 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/1.366, allocations: 4.229 MB / 0.5592 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.201e-05/1.366, allocations: 23.66 kB / 0.5592 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.499e-05/1.366, allocations: 15.72 kB / 0.5592 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.28e-05/1.366, allocations: 18.05 kB / 0.5592 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02694/1.393, allocations: 9.893 MB / 0.5689 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.136e-05/1.393, allocations: 3.906 kB / 0.5689 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/1.397, allocations: 404.7 kB / 0.5693 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003683/1.4, allocations: 0.8672 MB / 0.5701 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004192/1.401, allocations: 78.14 kB / 0.5702 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0245/1.425, allocations: 17.52 MB / 0.5873 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/1.426, allocations: 12.03 kB / 0.5873 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/1.44, allocations: 6.029 MB / 0.5932 GB, free: 99.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003584/1.444, allocations: 0.7436 MB / 0.5939 GB, free: 98.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001798/1.446, allocations: 67.98 kB / 0.594 GB, free: 98.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004047/1.45, allocations: 127.8 kB / 0.5941 GB, free: 98.17 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008871/1.451, allocations: 209.6 kB / 0.5943 GB, free: 97.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00039/1.451, allocations: 71.98 kB / 0.5944 GB, free: 97.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006663/1.458, allocations: 2.29 MB / 0.5966 GB, free: 95.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.458, allocations: 0 / 0.5966 GB, free: 95.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008065/1.466, allocations: 1.145 MB / 0.5977 GB, free: 94.48 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (198): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,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.01729/1.483, allocations: 6.726 MB / 0.6043 GB, free: 87.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02226/1.506, allocations: 5.745 MB / 0.6099 GB, free: 81.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/1.506, allocations: 4 kB / 0.6099 GB, free: 81.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007736/1.514, allocations: 2.863 MB / 0.6127 GB, free: 78.76 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01087/1.525, allocations: 1.012 MB / 0.6137 GB, free: 77.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1478/1.672, allocations: 47.8 MB / 0.6604 GB, free: 25.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01529/1.688, allocations: 4.221 MB / 0.6645 GB, free: 20.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.01177/1.7, allocations: 0.8404 MB / 0.6653 GB, free: 20.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01145/1.711, allocations: 2.53 MB / 0.6678 GB, free: 17.55 MB / 446.1 MB Notification: Performance of SimCode: time 2.194e-06/1.711, allocations: 0 / 0.6678 GB, free: 17.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8661/2.577, allocations: 100 MB / 0.7655 GB, free: 102.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.62/22.2, allocations: 11.25 kB / 0.7655 GB, free: 102.8 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches