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.001151/0.001151, allocations: 113.2 kB / 17.73 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.001052/0.001052, allocations: 184.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.406/1.406, 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.001399/0.001399, allocations: 51.92 kB / 328.1 MB, free: 3.77 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 46.62 MB / 374.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.264/0.3699, allocations: 41.75 MB / 416.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03177/0.4018, allocations: 11.08 MB / 427.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01321/0.415, allocations: 268 kB / 427.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02354/0.4387, allocations: 8.882 MB / 436.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01754/0.4563, allocations: 3.887 MB / 440.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009562/0.4659, allocations: 2.456 MB / 443 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02106/0.487, allocations: 13.9 MB / 456.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04154/0.5285, allocations: 25.8 MB / 482.7 MB, free: 3.617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01409/0.5427, allocations: 7.238 MB / 489.9 MB, free: 12.36 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01566/0.5584, allocations: 8.237 MB / 498.2 MB, free: 4.094 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00739/0.5658, allocations: 2.031 MB / 0.4885 GB, free: 2.062 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.576, allocations: 2.417 MB / 0.4908 GB, free: 15.64 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007787/0.5839, allocations: 4.239 MB / 0.495 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01928/0.6032, allocations: 8.038 MB / 0.5028 GB, free: 3.324 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03866/0.6419, allocations: 27.07 MB / 0.5293 GB, free: 8.168 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.642, allocations: 0 / 0.5293 GB, free: 8.168 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.642, allocations: 4 kB / 0.5293 GB, free: 8.164 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009407/0.6429, allocations: 3.984 kB / 0.5293 GB, free: 8.16 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.0607/0.7036, allocations: 16.32 MB / 0.5452 GB, free: 7.699 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.402e-05/0.7037, allocations: 8.031 kB / 0.5452 GB, free: 7.691 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009503/0.7132, allocations: 1.843 MB / 0.547 GB, free: 5.84 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4986/1.212, allocations: 9.254 MB / 0.5561 GB, free: 135.2 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02559/1.238, allocations: 7.743 MB / 0.5636 GB, free: 132.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001869/1.24, allocations: 0.9722 MB / 0.5646 GB, free: 132.2 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006554/1.246, allocations: 1.273 MB / 0.5658 GB, free: 131.8 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0588/1.305, allocations: 20.51 MB / 0.5858 GB, free: 123.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008129/1.306, allocations: 29 kB / 0.5859 GB, free: 123.2 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005213/1.311, allocations: 0.5272 MB / 0.5864 GB, free: 122.8 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008092/1.312, allocations: 0.7502 MB / 0.5871 GB, free: 122.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04412/1.356, allocations: 19.25 MB / 0.6059 GB, free: 104.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/1.474, allocations: 64.5 MB / 0.6689 GB, free: 39.12 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03733/1.511, allocations: 57.28 MB / 0.7248 GB, free: 6.977 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00818/1.519, allocations: 4.169 MB / 0.7289 GB, free: 2.789 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02897/1.548, allocations: 11.65 MB / 0.7403 GB, free: 7.301 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.952e-05/1.549, allocations: 81.28 kB / 0.7404 GB, free: 7.211 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 7.905e-06/1.549, allocations: 0 / 0.7404 GB, free: 7.211 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.2907/1.839, allocations: 18.02 MB / 0.758 GB, free: 167.1 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/1.839, allocations: 91.14 kB / 0.7581 GB, free: 167 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01407/1.853, allocations: 5.694 MB / 0.7636 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008806/1.854, allocations: 94.14 kB / 0.7637 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00568/1.86, allocations: 6.275 MB / 0.7698 GB, free: 160.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002379/1.862, allocations: 1.48 MB / 0.7713 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005838/1.868, allocations: 1.557 MB / 0.7728 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.713e-05/1.868, allocations: 302.1 kB / 0.7731 GB, free: 158.6 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00595/1.874, allocations: 3.151 MB / 0.7762 GB, free: 157.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008208/1.883, allocations: 6.89 MB / 0.7829 GB, free: 151.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/1.895, allocations: 10.81 MB / 0.7935 GB, free: 142.9 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001703/1.896, allocations: 39.62 kB / 0.7935 GB, free: 142.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02279/1.918, allocations: 11.06 MB / 0.8043 GB, free: 138.4 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/1.919, allocations: 61.84 kB / 0.8043 GB, free: 138.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002233/1.919, allocations: 132.2 kB / 0.8045 GB, free: 138.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002532/1.921, allocations: 0.9769 MB / 0.8054 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006616/1.928, allocations: 1.855 MB / 0.8072 GB, free: 137.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/1.939, allocations: 10.26 MB / 0.8173 GB, free: 128 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007338/1.946, allocations: 456 kB / 0.8177 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001595/1.948, allocations: 429.5 kB / 0.8181 GB, free: 127.2 MB / 0.5138 GB 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.009632/1.957, allocations: 4.516 MB / 0.8225 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002152/1.959, allocations: 0.6038 MB / 0.8231 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01342/1.973, allocations: 6.694 MB / 0.8296 GB, free: 117 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.692e-05/1.973, allocations: 40 kB / 0.8297 GB, free: 117 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.333e-05/1.973, allocations: 12 kB / 0.8297 GB, free: 117 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000104/1.973, allocations: 24.47 kB / 0.8297 GB, free: 117 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04222/2.015, allocations: 16.47 MB / 0.8458 GB, free: 100.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.443e-05/2.015, allocations: 4 kB / 0.8458 GB, free: 100.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00375/2.019, allocations: 0.7767 MB / 0.8466 GB, free: 100.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002343/2.022, allocations: 0.7923 MB / 0.8473 GB, free: 99.29 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008418/2.022, allocations: 87.97 kB / 0.8474 GB, free: 99.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009781/2.032, allocations: 9.351 MB / 0.8565 GB, free: 89.45 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/2.032, allocations: 14.83 kB / 0.8566 GB, free: 89.43 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01697/2.049, allocations: 9.848 MB / 0.8662 GB, free: 79.46 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004091/2.053, allocations: 1.149 MB / 0.8673 GB, free: 78.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002433/2.056, allocations: 73.31 kB / 0.8674 GB, free: 78.22 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004275/2.06, allocations: 227.7 kB / 0.8676 GB, free: 78 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001139/2.061, allocations: 274.8 kB / 0.8679 GB, free: 77.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007014/2.062, allocations: 123.9 kB / 0.868 GB, free: 77.61 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00828/2.07, allocations: 3.746 MB / 0.8716 GB, free: 73.89 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8.02e-07/2.07, allocations: 0 / 0.8716 GB, free: 73.89 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01198/2.082, allocations: 2.047 MB / 0.8736 GB, free: 71.85 MB / 0.5138 GB 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.01834/2.101, allocations: 10.58 MB / 0.884 GB, free: 61.16 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0144/2.115, allocations: 8.265 MB / 0.892 GB, free: 52.83 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/2.115, allocations: 0 / 0.892 GB, free: 52.83 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00665/2.122, allocations: 3.626 MB / 0.8956 GB, free: 49.12 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01157/2.134, allocations: 1.428 MB / 0.897 GB, free: 47.71 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3964/2.53, allocations: 72.82 MB / 0.9681 GB, free: 145.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01567/2.546, allocations: 7.696 MB / 0.9756 GB, free: 142.8 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008827/2.555, allocations: 2.393 MB / 0.9779 GB, free: 142.5 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00911/2.564, allocations: 4.697 MB / 0.9825 GB, free: 138.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.673e-06/2.564, allocations: 0 / 0.9825 GB, free: 138.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.473/3.037, allocations: 159.4 MB / 1.138 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.17/28.21, allocations: 2.125 kB / 1.138 GB, free: 123.6 MB / 0.5294 GB (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