Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001331/0.001331, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.00126, allocations: 63.89 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2615, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03773/0.2992, allocations: 37.89 MB / 446.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02211/0.3214, allocations: 10.3 MB / 457 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007415/0.3289, allocations: 275.1 kB / 457.3 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02155/0.3505, allocations: 9.186 MB / 466.4 MB, free: 7.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01423/0.3647, allocations: 4.016 MB / 470.5 MB, free: 3.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008133/0.3729, allocations: 2.435 MB / 472.9 MB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01893/0.3918, allocations: 14.22 MB / 487.1 MB, free: 2.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04522/0.4371, allocations: 25.63 MB / 0.5007 GB, free: 9.121 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.013/0.4501, allocations: 7.223 MB / 0.5078 GB, free: 1.879 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01349/0.4637, allocations: 8.043 MB / 0.5156 GB, free: 9.809 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006263/0.47, allocations: 2.027 MB / 0.5176 GB, free: 7.781 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008761/0.4788, allocations: 2.453 MB / 0.52 GB, free: 5.328 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006854/0.4857, allocations: 4.029 MB / 0.5239 GB, free: 1.289 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01502/0.5007, allocations: 7.829 MB / 0.5316 GB, free: 9.422 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.297/0.7978, allocations: 27.05 MB / 0.558 GB, free: 56.69 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.7978, allocations: 0 / 0.558 GB, free: 56.69 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7978, allocations: 0 / 0.558 GB, free: 56.69 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000924/0.7988, allocations: 3.391 kB / 0.558 GB, free: 56.69 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.0564/0.8552, allocations: 16.18 MB / 0.5738 GB, free: 49.49 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.8552, allocations: 12.52 kB / 0.5738 GB, free: 49.49 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008779/0.864, allocations: 1.931 MB / 0.5757 GB, free: 49.03 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03656/0.9006, allocations: 6.518 MB / 0.5821 GB, free: 46.49 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02092/0.9216, allocations: 8.624 MB / 0.5905 GB, free: 41.25 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008489/0.9225, allocations: 0.9037 MB / 0.5914 GB, free: 40.85 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006181/0.9286, allocations: 1.19 MB / 0.5925 GB, free: 40.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05283/0.9815, allocations: 18.77 MB / 0.6109 GB, free: 21.88 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005553/0.9821, allocations: 26.98 kB / 0.6109 GB, free: 21.86 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005365/0.9875, allocations: 0.4892 MB / 0.6114 GB, free: 21.38 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005933/0.9881, allocations: 0.6576 MB / 0.612 GB, free: 20.72 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03254/1.021, allocations: 17 MB / 0.6286 GB, free: 3.715 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1259/1.147, allocations: 63.35 MB / 0.6905 GB, free: 3.637 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02854/1.175, allocations: 30.02 MB / 0.7198 GB, free: 2.109 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006921/1.182, allocations: 4.027 MB / 0.7237 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02005/1.202, allocations: 10.38 MB / 0.7339 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.32e-05/1.202, allocations: 77.45 kB / 0.7339 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=402): time 5.911e-06/1.202, allocations: 0 / 0.7339 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of matching and sorting (n=412): time 0.3374/1.54, allocations: 20.39 MB / 0.7538 GB, free: 214.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/1.54, allocations: 120 kB / 0.754 GB, free: 214.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008667/1.549, allocations: 5.196 MB / 0.759 GB, free: 213.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009098/1.549, allocations: 94.36 kB / 0.7591 GB, free: 213.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.003029/1.553, allocations: 5.545 MB / 0.7645 GB, free: 211.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001588/1.554, allocations: 1.494 MB / 0.766 GB, free: 210.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/1.556, allocations: 1.253 MB / 0.7672 GB, free: 209.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.661e-05/1.556, allocations: 305.1 kB / 0.7675 GB, free: 209.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003929/1.56, allocations: 2.85 MB / 0.7703 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005619/1.566, allocations: 5.344 MB / 0.7755 GB, free: 204.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009888/1.576, allocations: 8.733 MB / 0.784 GB, free: 198 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-05/1.576, allocations: 23.59 kB / 0.7841 GB, free: 198 MB / 0.5762 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01694/1.593, allocations: 9.706 MB / 0.7935 GB, free: 193.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.007e-05/1.593, allocations: 49.03 kB / 0.7936 GB, free: 193.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/1.593, allocations: 79.81 kB / 0.7937 GB, free: 193.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002818/1.596, allocations: 1.118 MB / 0.7948 GB, free: 193.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005768/1.602, allocations: 1.45 MB / 0.7962 GB, free: 193.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/1.616, allocations: 13.49 MB / 0.8093 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006431/1.623, allocations: 360.1 kB / 0.8097 GB, free: 180.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001472/1.624, allocations: 323.4 kB / 0.81 GB, free: 180.6 MB / 0.5762 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.008442/1.633, allocations: 4.235 MB / 0.8141 GB, free: 176.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001531/1.634, allocations: 0.5625 MB / 0.8147 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/1.646, allocations: 7.105 MB / 0.8216 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006171/1.652, allocations: 4.228 MB / 0.8258 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-05/1.652, allocations: 12 kB / 0.8258 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-05/1.652, allocations: 19.22 kB / 0.8258 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02966/1.682, allocations: 16.96 MB / 0.8423 GB, free: 150 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/1.682, allocations: 4 kB / 0.8424 GB, free: 150 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002885/1.685, allocations: 0.6826 MB / 0.843 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003117/1.688, allocations: 1.186 MB / 0.8442 GB, free: 148.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006199/1.688, allocations: 99.97 kB / 0.8443 GB, free: 148 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01518/1.704, allocations: 17.4 MB / 0.8613 GB, free: 129.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.704, allocations: 7.938 kB / 0.8613 GB, free: 129.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01414/1.718, allocations: 10.31 MB / 0.8713 GB, free: 119.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003317/1.721, allocations: 1.146 MB / 0.8724 GB, free: 118.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001084/1.722, allocations: 84 kB / 0.8725 GB, free: 118.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002641/1.725, allocations: 211.8 kB / 0.8727 GB, free: 117.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006683/1.726, allocations: 307.3 kB / 0.873 GB, free: 117.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002716/1.726, allocations: 128 kB / 0.8731 GB, free: 117.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00508/1.731, allocations: 3.478 MB / 0.8765 GB, free: 114 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.731, allocations: 0 / 0.8765 GB, free: 114 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008478/1.739, allocations: 1.965 MB / 0.8785 GB, free: 112 MB / 0.5762 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.01466/1.754, allocations: 11.04 MB / 0.8892 GB, free: 100.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.011/1.765, allocations: 7.715 MB / 0.8968 GB, free: 93 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/1.765, allocations: 0 / 0.8968 GB, free: 93 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005886/1.771, allocations: 4.091 MB / 0.9008 GB, free: 88.83 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007619/1.779, allocations: 1.448 MB / 0.9022 GB, free: 87.43 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09968/1.878, allocations: 66.91 MB / 0.9675 GB, free: 17.24 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2745/2.153, allocations: 7.374 MB / 0.9747 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006079/2.159, allocations: 1.997 MB / 0.9767 GB, free: 207.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007383/2.167, allocations: 4.408 MB / 0.981 GB, free: 207.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.563e-06/2.167, allocations: 0 / 0.981 GB, free: 207.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2295/2.396, allocations: 157.6 MB / 1.135 GB, free: 71.11 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.56/23.96, allocations: 16.64 kB / 1.135 GB, free: 71.1 MB / 0.5762 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches