Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001861/0.001862, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.002159/0.002159, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 55.92 kB / 328.1 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08956/0.09139, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2053/0.2968, allocations: 37.35 MB / 412 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02659/0.3234, allocations: 10.02 MB / 422 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008848/0.3323, allocations: 233.8 kB / 422.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02374/0.3561, allocations: 9.118 MB / 431.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0161/0.3723, allocations: 3.951 MB / 435.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00894/0.3812, allocations: 2.411 MB / 437.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02172/0.403, allocations: 14.24 MB / 452 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04745/0.4505, allocations: 25.59 MB / 477.6 MB, free: 8.801 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01408/0.4646, allocations: 7.25 MB / 484.8 MB, free: 1.531 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01422/0.4789, allocations: 8 MB / 492.8 MB, free: 9.504 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005834/0.4848, allocations: 2.035 MB / 494.9 MB, free: 7.469 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00803/0.4928, allocations: 2.429 MB / 497.3 MB, free: 5.039 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007003/0.4999, allocations: 4.095 MB / 0.4896 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01493/0.5148, allocations: 7.898 MB / 0.4974 GB, free: 9.004 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03812/0.553, allocations: 27.05 MB / 0.5238 GB, free: 13.86 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.553, allocations: 3.984 kB / 0.5238 GB, free: 13.86 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5531, allocations: 0 / 0.5238 GB, free: 13.86 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007328/0.5538, allocations: 0 / 0.5238 GB, free: 13.86 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.0505/0.6043, allocations: 16.31 MB / 0.5397 GB, free: 13.41 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.6044, allocations: 11.89 kB / 0.5397 GB, free: 13.4 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007404/0.6118, allocations: 1.96 MB / 0.5416 GB, free: 11.43 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04291/0.6547, allocations: 7.468 MB / 0.5489 GB, free: 3.945 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3639/1.019, allocations: 7.784 MB / 0.5565 GB, free: 131.9 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009152/1.02, allocations: 0.9169 MB / 0.5574 GB, free: 131.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004565/1.024, allocations: 1.204 MB / 0.5586 GB, free: 131.1 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04711/1.071, allocations: 19.23 MB / 0.5774 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005405/1.072, allocations: 21.92 kB / 0.5774 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003608/1.076, allocations: 0.4985 MB / 0.5779 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007426/1.076, allocations: 0.6831 MB / 0.5786 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03345/1.11, allocations: 17.68 MB / 0.5958 GB, free: 113.1 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09352/1.203, allocations: 63.3 MB / 0.6576 GB, free: 49.48 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02655/1.23, allocations: 38.66 MB / 0.6954 GB, free: 6.066 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00639/1.236, allocations: 4.176 MB / 0.6995 GB, free: 1.891 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02597/1.262, allocations: 12.22 MB / 0.7114 GB, free: 5.812 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.092e-05/1.263, allocations: 77.8 kB / 0.7115 GB, free: 5.727 MB / 494.1 MB Notification: Performance of pre-optimization done (n=402): time 6.111e-06/1.263, allocations: 0 / 0.7115 GB, free: 5.727 MB / 494.1 MB Notification: Performance of matching and sorting (n=412): time 0.04973/1.312, allocations: 20.32 MB / 0.7313 GB, free: 1.566 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.946e-05/1.312, allocations: 128.3 kB / 0.7315 GB, free: 1.422 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/1.324, allocations: 5.313 MB / 0.7366 GB, free: 12.19 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008548/1.324, allocations: 89.7 kB / 0.7367 GB, free: 12.09 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005062/1.33, allocations: 5.69 MB / 0.7423 GB, free: 6.504 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002059/1.332, allocations: 1.496 MB / 0.7437 GB, free: 5.023 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003205/1.335, allocations: 1.311 MB / 0.745 GB, free: 3.703 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001229/1.335, allocations: 305.1 kB / 0.7453 GB, free: 3.402 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005634/1.341, allocations: 2.906 MB / 0.7482 GB, free: 0.4922 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2165/1.557, allocations: 5.635 MB / 0.7537 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/1.571, allocations: 9.112 MB / 0.7626 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001545/1.571, allocations: 26.31 kB / 0.7626 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01968/1.591, allocations: 10.02 MB / 0.7724 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/1.591, allocations: 44.94 kB / 0.7724 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001813/1.591, allocations: 90.16 kB / 0.7725 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003494/1.594, allocations: 1.131 MB / 0.7736 GB, free: 151.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006149/1.601, allocations: 1.529 MB / 0.7751 GB, free: 151.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01419/1.615, allocations: 13.48 MB / 0.7883 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005436/1.62, allocations: 372 kB / 0.7886 GB, free: 142 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001241/1.622, allocations: 345.7 kB / 0.7889 GB, free: 141.9 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (803): * Single equations (assignments): 797 * 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,52.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.007003/1.629, allocations: 4.298 MB / 0.7931 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001325/1.63, allocations: 0.5605 MB / 0.7937 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/1.642, allocations: 7.131 MB / 0.8006 GB, free: 136.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006204/1.648, allocations: 4.225 MB / 0.8048 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.576e-05/1.648, allocations: 15.62 kB / 0.8048 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.086e-05/1.648, allocations: 21.98 kB / 0.8048 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03151/1.68, allocations: 17.02 MB / 0.8214 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.447e-05/1.68, allocations: 4 kB / 0.8214 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002993/1.683, allocations: 0.686 MB / 0.8221 GB, free: 123 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003131/1.686, allocations: 1.189 MB / 0.8233 GB, free: 122 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00088/1.687, allocations: 98.56 kB / 0.8234 GB, free: 122 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0155/1.702, allocations: 17.38 MB / 0.8403 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.702, allocations: 11.94 kB / 0.8403 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/1.718, allocations: 10.31 MB / 0.8504 GB, free: 94.24 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003324/1.722, allocations: 1.147 MB / 0.8515 GB, free: 93.09 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001694/1.724, allocations: 91.94 kB / 0.8516 GB, free: 93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003842/1.727, allocations: 207.8 kB / 0.8518 GB, free: 92.79 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001217/1.729, allocations: 311.3 kB / 0.8521 GB, free: 92.48 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004076/1.729, allocations: 124 kB / 0.8522 GB, free: 92.36 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005773/1.735, allocations: 3.542 MB / 0.8557 GB, free: 88.84 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.112e-06/1.735, allocations: 0 / 0.8557 GB, free: 88.84 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008076/1.743, allocations: 1.99 MB / 0.8576 GB, free: 86.86 MB / 0.5138 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.01477/1.758, allocations: 11.07 MB / 0.8684 GB, free: 75.62 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01166/1.769, allocations: 7.835 MB / 0.8761 GB, free: 67.71 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.77, allocations: 4.938 kB / 0.8761 GB, free: 67.71 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00615/1.776, allocations: 4.091 MB / 0.8801 GB, free: 63.54 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007782/1.784, allocations: 1.449 MB / 0.8815 GB, free: 62.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3184/2.102, allocations: 68.5 MB / 0.9484 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01521/2.117, allocations: 7.453 MB / 0.9557 GB, free: 168 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007029/2.124, allocations: 2.081 MB / 0.9577 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007611/2.132, allocations: 4.391 MB / 0.962 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.152e-06/2.132, allocations: 1.094 kB / 0.962 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2241/2.356, allocations: 159.4 MB / 1.118 GB, free: 27.48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.39/28.74, allocations: 0.875 kB / 1.118 GB, free: 27.48 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches