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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001257/0.001257, allocations: 96.78 kB / 17.58 MB, free: 5.418 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.001365/0.001365, allocations: 196.1 kB / 18.51 MB, free: 4.504 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.369/1.369, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001719/0.001719, allocations: 55.94 kB / 280.8 MB, free: 3.027 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/0.09055, allocations: 46.62 MB / 327.4 MB, free: 4.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05006/0.1406, allocations: 41.75 MB / 369.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1826/0.3233, allocations: 11.08 MB / 380.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007435/0.3307, allocations: 266.7 kB / 380.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01994/0.3507, allocations: 8.79 MB / 389.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01358/0.3643, allocations: 3.789 MB / 393.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007547/0.3719, allocations: 2.455 MB / 395.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01952/0.3914, allocations: 13.79 MB / 409.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04442/0.4359, allocations: 25.88 MB / 435.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01451/0.4505, allocations: 7.183 MB / 442.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01571/0.4662, allocations: 8.267 MB / 450.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006699/0.473, allocations: 2.031 MB / 452.7 MB, free: 376 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00928/0.4823, allocations: 2.423 MB / 455.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007067/0.4894, allocations: 4.243 MB / 459.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01734/0.5068, allocations: 8.048 MB / 467.4 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03585/0.5427, allocations: 26.81 MB / 494.2 MB, free: 7.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.5427, allocations: 0 / 494.2 MB, free: 7.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.5427, allocations: 0 / 494.2 MB, free: 7.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007196/0.5435, allocations: 0 / 494.2 MB, free: 7.434 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05279/0.5962, allocations: 16.07 MB / 0.4983 GB, free: 7.359 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.5963, allocations: 8.031 kB / 0.4983 GB, free: 7.352 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006188/0.6025, allocations: 1.844 MB / 0.5001 GB, free: 5.516 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05315/0.6557, allocations: 9.172 MB / 0.5091 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01852/0.6743, allocations: 7.688 MB / 0.5166 GB, free: 4.719 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001178/0.6755, allocations: 0.9696 MB / 0.5175 GB, free: 3.762 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005253/0.6807, allocations: 1.279 MB / 0.5188 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2112/0.892, allocations: 20.51 MB / 0.5388 GB, free: 135.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004538/0.8925, allocations: 24.23 kB / 0.5388 GB, free: 135.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00293/0.8954, allocations: 0.5261 MB / 0.5394 GB, free: 135.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009704/0.8964, allocations: 0.7437 MB / 0.5401 GB, free: 135.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04073/0.9371, allocations: 19.25 MB / 0.5589 GB, free: 129.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1061/1.043, allocations: 65.05 MB / 0.6224 GB, free: 78.94 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03011/1.073, allocations: 57.29 MB / 0.6783 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006589/1.08, allocations: 4.193 MB / 0.6824 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02135/1.101, allocations: 11.67 MB / 0.6938 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.536e-05/1.102, allocations: 69.41 kB / 0.6939 GB, free: 14.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 5.8e-06/1.102, allocations: 0 / 0.6939 GB, free: 14.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.2112/1.313, allocations: 17.86 MB / 0.7113 GB, free: 147.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/1.313, allocations: 93.8 kB / 0.7114 GB, free: 147 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0127/1.326, allocations: 5.687 MB / 0.717 GB, free: 145.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007678/1.326, allocations: 91.48 kB / 0.7171 GB, free: 145.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003764/1.33, allocations: 6.05 MB / 0.723 GB, free: 141.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.332, allocations: 1.422 MB / 0.7244 GB, free: 140.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002355/1.334, allocations: 1.545 MB / 0.7259 GB, free: 140.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.766e-05/1.334, allocations: 302.6 kB / 0.7262 GB, free: 139.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004299/1.338, allocations: 3.149 MB / 0.7292 GB, free: 138.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005336/1.344, allocations: 6.896 MB / 0.736 GB, free: 132.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/1.354, allocations: 10.8 MB / 0.7465 GB, free: 124.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/1.354, allocations: 40.38 kB / 0.7466 GB, free: 124.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01844/1.373, allocations: 11.04 MB / 0.7573 GB, free: 119.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/1.373, allocations: 55.97 kB / 0.7574 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002307/1.373, allocations: 131.2 kB / 0.7575 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002489/1.376, allocations: 0.9826 MB / 0.7585 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005981/1.382, allocations: 1.86 MB / 0.7603 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/1.392, allocations: 10.26 MB / 0.7703 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006795/1.399, allocations: 461.3 kB / 0.7707 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.4, allocations: 429.1 kB / 0.7712 GB, free: 111.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007457/1.408, allocations: 4.519 MB / 0.7756 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001876/1.41, allocations: 0.5708 MB / 0.7761 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/1.422, allocations: 6.708 MB / 0.7827 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.259e-05/1.422, allocations: 40 kB / 0.7827 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.049e-05/1.422, allocations: 8 kB / 0.7827 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.783e-05/1.422, allocations: 29.14 kB / 0.7827 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03401/1.456, allocations: 16.48 MB / 0.7988 GB, free: 86.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-05/1.456, allocations: 4 kB / 0.7989 GB, free: 86.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003616/1.46, allocations: 0.784 MB / 0.7996 GB, free: 85.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002144/1.462, allocations: 0.7888 MB / 0.8004 GB, free: 84.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007523/1.462, allocations: 95.97 kB / 0.8005 GB, free: 84.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009321/1.472, allocations: 9.348 MB / 0.8096 GB, free: 75.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.472, allocations: 4 kB / 0.8096 GB, free: 75.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01646/1.488, allocations: 9.829 MB / 0.8192 GB, free: 65.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003402/1.492, allocations: 1.115 MB / 0.8203 GB, free: 63.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001933/1.494, allocations: 79.94 kB / 0.8204 GB, free: 63.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003917/1.498, allocations: 223.8 kB / 0.8206 GB, free: 63.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009724/1.499, allocations: 278.8 kB / 0.8209 GB, free: 63.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005564/1.499, allocations: 120 kB / 0.821 GB, free: 63.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007012/1.506, allocations: 3.746 MB / 0.8246 GB, free: 59.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.31e-07/1.506, allocations: 0 / 0.8246 GB, free: 59.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009733/1.516, allocations: 2.05 MB / 0.8266 GB, free: 57.51 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01726/1.533, allocations: 10.54 MB / 0.8369 GB, free: 46.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02837/1.562, allocations: 13.87 MB / 0.8505 GB, free: 32.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.505e-06/1.562, allocations: 3.938 kB / 0.8505 GB, free: 32.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005468/1.567, allocations: 3.628 MB / 0.854 GB, free: 29.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008205/1.576, allocations: 1.411 MB / 0.8554 GB, free: 27.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2932/1.869, allocations: 92.2 MB / 0.9454 GB, free: 101.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01464/1.883, allocations: 7.695 MB / 0.9529 GB, free: 95.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008655/1.892, allocations: 2.398 MB / 0.9553 GB, free: 93.08 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007272/1.899, allocations: 4.695 MB / 0.9599 GB, free: 88.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/1.899, allocations: 0 / 0.9599 GB, free: 88.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4013/2.301, allocations: 162.2 MB / 1.118 GB, free: 92.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/15.9, allocations: 8.312 kB / 1.118 GB, free: 92.17 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --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_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches