Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.001148/0.001148, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001224/0.001224, allocations: 200 kB / 18.01 MB, free: 5.066 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.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 47.92 kB / 350.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3775, allocations: 49.43 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04377/0.4213, allocations: 37.26 MB / 437.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02199/0.4434, allocations: 10.02 MB / 447.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008421/0.4519, allocations: 271.1 kB / 447.8 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0215/0.4734, allocations: 9.177 MB / 457 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01544/0.4889, allocations: 4.016 MB / 461 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008828/0.4977, allocations: 2.383 MB / 463.4 MB, free: 9.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02134/0.5191, allocations: 14.09 MB / 477.5 MB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04272/0.5618, allocations: 25.63 MB / 0.4913 GB, free: 1.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01258/0.5744, allocations: 7.203 MB / 0.4984 GB, free: 10.28 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01295/0.5874, allocations: 7.895 MB / 0.5061 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006181/0.5936, allocations: 2.027 MB / 0.508 GB, free: 336 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007744/0.6014, allocations: 2.429 MB / 0.5104 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006534/0.608, allocations: 4.021 MB / 0.5143 GB, free: 9.867 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01479/0.6228, allocations: 7.809 MB / 0.522 GB, free: 2.027 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4973/1.12, allocations: 27 MB / 0.5483 GB, free: 58.42 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/1.12, allocations: 0.8125 kB / 0.5483 GB, free: 58.42 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.056e-06/1.12, allocations: 3.031 kB / 0.5483 GB, free: 58.42 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008762/1.121, allocations: 5.547 kB / 0.5483 GB, free: 58.42 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05228/1.173, allocations: 16.12 MB / 0.5641 GB, free: 53.59 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/1.173, allocations: 14.61 kB / 0.5641 GB, free: 53.59 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007791/1.181, allocations: 1.928 MB / 0.566 GB, free: 53.13 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03568/1.217, allocations: 6.47 MB / 0.5723 GB, free: 50.61 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01889/1.236, allocations: 8.598 MB / 0.5807 GB, free: 47.22 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006996/1.237, allocations: 0.9013 MB / 0.5816 GB, free: 46.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005636/1.242, allocations: 1.192 MB / 0.5827 GB, free: 46.42 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04773/1.29, allocations: 18.77 MB / 0.6011 GB, free: 29.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004985/1.291, allocations: 23.89 kB / 0.6011 GB, free: 29.05 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005017/1.296, allocations: 0.4911 MB / 0.6016 GB, free: 28.57 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005293/1.296, allocations: 0.6498 MB / 0.6022 GB, free: 27.92 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03227/1.328, allocations: 17 MB / 0.6188 GB, free: 10.91 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1134/1.442, allocations: 62.04 MB / 0.6794 GB, free: 12.42 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02914/1.471, allocations: 29.7 MB / 0.7084 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007418/1.479, allocations: 3.996 MB / 0.7123 GB, free: 7.266 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02096/1.5, allocations: 10.11 MB / 0.7222 GB, free: 13.23 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.385e-05/1.5, allocations: 77.8 kB / 0.7222 GB, free: 13.14 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 5.31e-06/1.5, allocations: 0 / 0.7222 GB, free: 13.14 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.04326/1.543, allocations: 20.38 MB / 0.7422 GB, free: 8.539 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/1.543, allocations: 120.4 kB / 0.7423 GB, free: 8.402 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007743/1.551, allocations: 5.162 MB / 0.7473 GB, free: 3.25 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009161/1.552, allocations: 93.7 kB / 0.7474 GB, free: 3.152 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2331/1.785, allocations: 5.535 MB / 0.7528 GB, free: 222.4 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.00188/1.787, allocations: 1.496 MB / 0.7543 GB, free: 221.5 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002078/1.789, allocations: 1.253 MB / 0.7555 GB, free: 221.4 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.869e-05/1.789, allocations: 301.1 kB / 0.7558 GB, free: 221.1 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003893/1.793, allocations: 2.852 MB / 0.7586 GB, free: 221.1 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004644/1.797, allocations: 5.35 MB / 0.7638 GB, free: 217.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00929/1.807, allocations: 8.724 MB / 0.7723 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.689e-05/1.807, allocations: 27.38 kB / 0.7723 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01543/1.822, allocations: 9.694 MB / 0.7818 GB, free: 207 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.901e-05/1.822, allocations: 41.84 kB / 0.7818 GB, free: 207 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/1.822, allocations: 79.84 kB / 0.7819 GB, free: 207 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00276/1.825, allocations: 1.124 MB / 0.783 GB, free: 206.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005188/1.83, allocations: 1.446 MB / 0.7844 GB, free: 206.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01358/1.844, allocations: 13.48 MB / 0.7976 GB, free: 196.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005787/1.85, allocations: 353.2 kB / 0.7979 GB, free: 196.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001154/1.851, allocations: 323.4 kB / 0.7982 GB, free: 195.9 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 4 systems {(1,1,100.0%), (10,46,50.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.00726/1.858, allocations: 4.225 MB / 0.8024 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.86, allocations: 0.5624 MB / 0.8029 GB, free: 191.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/1.87, allocations: 7.098 MB / 0.8098 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005542/1.876, allocations: 4.226 MB / 0.814 GB, free: 182 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.82e-05/1.876, allocations: 16 kB / 0.814 GB, free: 182 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.236e-05/1.876, allocations: 26.53 kB / 0.814 GB, free: 182 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02524/1.901, allocations: 16.94 MB / 0.8305 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/1.901, allocations: 4 kB / 0.8306 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002704/1.904, allocations: 0.6788 MB / 0.8312 GB, free: 165.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002856/1.907, allocations: 1.195 MB / 0.8324 GB, free: 164.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003164/1.907, allocations: 95.97 kB / 0.8325 GB, free: 164.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01437/1.921, allocations: 17.41 MB / 0.8495 GB, free: 146.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.921, allocations: 11.94 kB / 0.8495 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/1.935, allocations: 10.3 MB / 0.8595 GB, free: 135.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002843/1.938, allocations: 1.139 MB / 0.8607 GB, free: 134.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.939, allocations: 87.98 kB / 0.8607 GB, free: 134.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002814/1.942, allocations: 211.8 kB / 0.8609 GB, free: 134.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006167/1.942, allocations: 299.4 kB / 0.8612 GB, free: 133.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002516/1.943, allocations: 131.9 kB / 0.8614 GB, free: 133.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005056/1.948, allocations: 3.461 MB / 0.8647 GB, free: 130.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.61e-07/1.948, allocations: 0 / 0.8647 GB, free: 130.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007035/1.955, allocations: 1.957 MB / 0.8666 GB, free: 128.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01344/1.968, allocations: 11.05 MB / 0.8774 GB, free: 117.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01048/1.979, allocations: 7.712 MB / 0.885 GB, free: 109.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.979, allocations: 0 / 0.885 GB, free: 109.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005962/1.985, allocations: 4.094 MB / 0.889 GB, free: 105.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00904/1.994, allocations: 1.44 MB / 0.8904 GB, free: 103.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1022/2.096, allocations: 66.82 MB / 0.9556 GB, free: 33.72 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007901/2.104, allocations: 7.373 MB / 0.9628 GB, free: 26.31 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005392/2.109, allocations: 1.997 MB / 0.9648 GB, free: 24.3 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005418/2.115, allocations: 4.395 MB / 0.9691 GB, free: 19.91 MB / 0.5763 GB Notification: Performance of SimCode: time 8.71e-07/2.115, allocations: 0 / 0.9691 GB, free: 19.91 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4423/2.557, allocations: 157.5 MB / 1.123 GB, free: 101.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.94/24.5, allocations: 8.656 kB / 1.123 GB, free: 101.6 MB / 0.5763 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches