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.001762/0.001762, allocations: 108.8 kB / 17.73 MB, free: 5.34 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.001866/0.001866, allocations: 190.9 kB / 18.67 MB, free: 4.41 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.424/1.424, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001683/0.001683, allocations: 47.92 kB / 328.1 MB, free: 3.758 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09991/0.1016, allocations: 46.62 MB / 374.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2522/0.3538, allocations: 41.76 MB / 416.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03111/0.385, allocations: 11.07 MB / 427.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01148/0.3966, allocations: 272 kB / 427.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02491/0.4216, allocations: 8.801 MB / 436.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01793/0.4395, allocations: 3.789 MB / 440.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009931/0.4495, allocations: 2.462 MB / 442.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02314/0.4726, allocations: 13.88 MB / 456.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05026/0.5229, allocations: 25.81 MB / 482.5 MB, free: 3.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0155/0.5385, allocations: 7.203 MB / 489.7 MB, free: 12.56 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01696/0.5555, allocations: 8.241 MB / 498 MB, free: 4.289 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007078/0.5626, allocations: 2.031 MB / 0.4883 GB, free: 2.258 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01011/0.5728, allocations: 2.414 MB / 0.4906 GB, free: 15.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008165/0.581, allocations: 4.235 MB / 0.4948 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0192/0.6003, allocations: 8.038 MB / 0.5026 GB, free: 3.527 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04323/0.6436, allocations: 27.07 MB / 0.5291 GB, free: 8.371 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.6437, allocations: 0 / 0.5291 GB, free: 8.371 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6437, allocations: 0 / 0.5291 GB, free: 8.371 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009012/0.6446, allocations: 0 / 0.5291 GB, free: 8.371 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.05313/0.6977, allocations: 16.34 MB / 0.545 GB, free: 7.895 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.6978, allocations: 8.031 kB / 0.545 GB, free: 7.887 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007901/0.7057, allocations: 1.843 MB / 0.5468 GB, free: 6.035 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2836/0.9894, allocations: 9.252 MB / 0.5559 GB, free: 137.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02189/1.011, allocations: 7.738 MB / 0.5634 GB, free: 135.2 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001965/1.013, allocations: 0.9731 MB / 0.5644 GB, free: 134.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006422/1.02, allocations: 1.274 MB / 0.5656 GB, free: 134.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05962/1.079, allocations: 20.52 MB / 0.5856 GB, free: 125.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008046/1.08, allocations: 35.28 kB / 0.5857 GB, free: 125.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005133/1.085, allocations: 0.5205 MB / 0.5862 GB, free: 125.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008224/1.086, allocations: 0.7506 MB / 0.5869 GB, free: 125.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04201/1.128, allocations: 19.25 MB / 0.6057 GB, free: 107.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/1.246, allocations: 64.5 MB / 0.6687 GB, free: 41.45 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03911/1.285, allocations: 57.27 MB / 0.7246 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008635/1.294, allocations: 4.172 MB / 0.7287 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03074/1.325, allocations: 11.65 MB / 0.7401 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.219e-05/1.325, allocations: 69.41 kB / 0.7402 GB, free: 9.379 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=361): time 8.225e-06/1.325, allocations: 8 kB / 0.7402 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of matching and sorting (n=403): time 0.3063/1.631, allocations: 18.02 MB / 0.7578 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.166e-05/1.631, allocations: 93.12 kB / 0.7579 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01657/1.648, allocations: 5.696 MB / 0.7634 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009257/1.649, allocations: 91.3 kB / 0.7635 GB, free: 167.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.006076/1.655, allocations: 6.272 MB / 0.7696 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002403/1.657, allocations: 1.489 MB / 0.7711 GB, free: 161.4 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005584/1.663, allocations: 1.554 MB / 0.7726 GB, free: 160.6 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.433e-05/1.663, allocations: 303 kB / 0.7729 GB, free: 160.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00708/1.67, allocations: 3.144 MB / 0.776 GB, free: 159.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009702/1.68, allocations: 6.894 MB / 0.7827 GB, free: 153 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01367/1.694, allocations: 10.81 MB / 0.7933 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003134/1.694, allocations: 34.34 kB / 0.7933 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02596/1.72, allocations: 11.07 MB / 0.8041 GB, free: 140.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001924/1.72, allocations: 59.22 kB / 0.8041 GB, free: 140.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002684/1.721, allocations: 126.9 kB / 0.8043 GB, free: 140.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002956/1.724, allocations: 0.9762 MB / 0.8052 GB, free: 139.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007204/1.731, allocations: 1.861 MB / 0.807 GB, free: 139.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/1.743, allocations: 10.25 MB / 0.8171 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008251/1.751, allocations: 458.9 kB / 0.8175 GB, free: 131.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001753/1.753, allocations: 429.2 kB / 0.8179 GB, free: 130.7 MB / 0.5137 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.01003/1.763, allocations: 4.505 MB / 0.8223 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002096/1.765, allocations: 0.605 MB / 0.8229 GB, free: 126.2 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/1.779, allocations: 6.702 MB / 0.8294 GB, free: 120.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-05/1.779, allocations: 44 kB / 0.8295 GB, free: 120.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.297e-05/1.779, allocations: 8.875 kB / 0.8295 GB, free: 120.4 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001142/1.779, allocations: 25.94 kB / 0.8295 GB, free: 120.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04125/1.82, allocations: 16.46 MB / 0.8456 GB, free: 104.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-05/1.82, allocations: 5.688 kB / 0.8456 GB, free: 104.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003901/1.824, allocations: 0.7802 MB / 0.8464 GB, free: 104 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002495/1.827, allocations: 0.7923 MB / 0.8471 GB, free: 103.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009195/1.828, allocations: 87.97 kB / 0.8472 GB, free: 103.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/1.838, allocations: 9.349 MB / 0.8563 GB, free: 93.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/1.838, allocations: 10.67 kB / 0.8564 GB, free: 93.35 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01923/1.857, allocations: 9.864 MB / 0.866 GB, free: 83.36 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004321/1.862, allocations: 1.137 MB / 0.8671 GB, free: 82.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002596/1.864, allocations: 79.98 kB / 0.8672 GB, free: 82.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004814/1.869, allocations: 223.8 kB / 0.8674 GB, free: 81.91 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001405/1.871, allocations: 282.8 kB / 0.8677 GB, free: 81.63 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009236/1.872, allocations: 116 kB / 0.8678 GB, free: 81.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.009166/1.881, allocations: 3.754 MB / 0.8714 GB, free: 77.79 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7.02e-07/1.881, allocations: 0 / 0.8714 GB, free: 77.79 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01267/1.894, allocations: 2.043 MB / 0.8734 GB, free: 75.75 MB / 0.5137 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.02002/1.914, allocations: 10.59 MB / 0.8838 GB, free: 65.05 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01543/1.929, allocations: 8.247 MB / 0.8918 GB, free: 56.73 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/1.929, allocations: 0 / 0.8918 GB, free: 56.73 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006926/1.936, allocations: 3.632 MB / 0.8954 GB, free: 53.02 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01268/1.949, allocations: 1.421 MB / 0.8968 GB, free: 51.62 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4046/2.354, allocations: 72.82 MB / 0.9679 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0182/2.372, allocations: 7.692 MB / 0.9754 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009677/2.381, allocations: 2.407 MB / 0.9777 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008872/2.39, allocations: 4.697 MB / 0.9823 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.142e-06/2.39, allocations: 0 / 0.9823 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4916/2.882, allocations: 159.4 MB / 1.138 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.05/27.94, allocations: 9.812 kB / 1.138 GB, free: 129.6 MB / 0.5137 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