Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_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.001437/0.001437, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001507/0.001507, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009868/0.0009869, allocations: 47.92 kB / 350.9 MB, free: 3.668 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2952, allocations: 49.43 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03919/0.3344, allocations: 41.17 MB / 441.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02492/0.3593, allocations: 10.95 MB / 452.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01079/0.3702, allocations: 311 kB / 452.7 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02097/0.3912, allocations: 8.84 MB / 461.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01276/0.404, allocations: 3.655 MB / 465.2 MB, free: 7.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007691/0.4117, allocations: 2.408 MB / 467.6 MB, free: 5.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01921/0.4309, allocations: 13.35 MB / 481 MB, free: 7.789 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04424/0.4752, allocations: 25.62 MB / 0.4947 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01196/0.4872, allocations: 6.989 MB / 0.5015 GB, free: 7.016 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01329/0.5005, allocations: 7.918 MB / 0.5093 GB, free: 15.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006235/0.5068, allocations: 1.992 MB / 0.5112 GB, free: 13.08 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008853/0.5157, allocations: 2.378 MB / 0.5135 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008669/0.5244, allocations: 4.037 MB / 0.5175 GB, free: 6.652 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01606/0.5405, allocations: 7.77 MB / 0.5251 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4907/1.031, allocations: 26.51 MB / 0.551 GB, free: 57.46 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/1.031, allocations: 0 / 0.551 GB, free: 57.46 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.192e-06/1.031, allocations: 0 / 0.551 GB, free: 57.46 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008382/1.032, allocations: 0 / 0.551 GB, free: 57.46 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04826/1.08, allocations: 15.72 MB / 0.5663 GB, free: 51.38 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/1.08, allocations: 9.25 kB / 0.5663 GB, free: 51.38 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007684/1.088, allocations: 1.758 MB / 0.568 GB, free: 50.94 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03417/1.122, allocations: 6.286 MB / 0.5742 GB, free: 48.45 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01894/1.141, allocations: 8.296 MB / 0.5823 GB, free: 44.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008168/1.142, allocations: 0.9302 MB / 0.5832 GB, free: 44.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006074/1.148, allocations: 1.221 MB / 0.5844 GB, free: 44.12 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05228/1.201, allocations: 19.02 MB / 0.6029 GB, free: 26.85 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008199/1.201, allocations: 23.56 kB / 0.603 GB, free: 26.83 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006338/1.208, allocations: 0.5085 MB / 0.6035 GB, free: 26.34 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007261/1.209, allocations: 0.6582 MB / 0.6041 GB, free: 25.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03778/1.246, allocations: 17.03 MB / 0.6207 GB, free: 8.641 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1193/1.366, allocations: 59.98 MB / 0.6793 GB, free: 12.25 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02711/1.393, allocations: 33.16 MB / 0.7117 GB, free: 7.227 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007038/1.4, allocations: 3.786 MB / 0.7154 GB, free: 3.426 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02087/1.421, allocations: 8.885 MB / 0.7241 GB, free: 10.61 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.892e-05/1.421, allocations: 77.41 kB / 0.7241 GB, free: 10.52 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 8.266e-06/1.421, allocations: 0 / 0.7241 GB, free: 10.52 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.04017/1.461, allocations: 17.91 MB / 0.7416 GB, free: 8.555 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/1.461, allocations: 94.58 kB / 0.7417 GB, free: 8.449 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01081/1.472, allocations: 5.252 MB / 0.7469 GB, free: 3.215 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009723/1.473, allocations: 93.7 kB / 0.7469 GB, free: 3.117 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2399/1.713, allocations: 5.799 MB / 0.7526 GB, free: 223.7 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002021/1.715, allocations: 1.472 MB / 0.754 GB, free: 222.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002328/1.717, allocations: 1.363 MB / 0.7554 GB, free: 222.7 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.34e-05/1.717, allocations: 304.9 kB / 0.7557 GB, free: 222.4 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003922/1.721, allocations: 2.972 MB / 0.7586 GB, free: 222.4 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004983/1.726, allocations: 6.015 MB / 0.7644 GB, free: 217.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009205/1.736, allocations: 9.665 MB / 0.7739 GB, free: 210.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.085e-05/1.736, allocations: 26.78 kB / 0.7739 GB, free: 210.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.0152/1.751, allocations: 10.11 MB / 0.7838 GB, free: 206.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.537e-05/1.751, allocations: 54.92 kB / 0.7838 GB, free: 206.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/1.751, allocations: 104.7 kB / 0.7839 GB, free: 206.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002188/1.753, allocations: 0.9388 MB / 0.7849 GB, free: 205.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005246/1.759, allocations: 1.629 MB / 0.7864 GB, free: 205.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00975/1.768, allocations: 10.21 MB / 0.7964 GB, free: 196.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005722/1.774, allocations: 412 kB / 0.7968 GB, free: 196.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009447/1.775, allocations: 363.4 kB / 0.7972 GB, free: 196.2 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00645/1.782, allocations: 4.306 MB / 0.8014 GB, free: 192.5 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001217/1.783, allocations: 0.5702 MB / 0.8019 GB, free: 192 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009334/1.792, allocations: 6.66 MB / 0.8084 GB, free: 186.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.45e-05/1.792, allocations: 51.94 kB / 0.8085 GB, free: 186.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/1.792, allocations: 8 kB / 0.8085 GB, free: 186.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.348e-05/1.792, allocations: 19.03 kB / 0.8085 GB, free: 186.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02476/1.817, allocations: 16.23 MB / 0.8243 GB, free: 172.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/1.817, allocations: 8.062 kB / 0.8244 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002938/1.82, allocations: 0.7684 MB / 0.8251 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/1.822, allocations: 0.7918 MB / 0.8259 GB, free: 170.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003048/1.822, allocations: 91.97 kB / 0.826 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007999/1.83, allocations: 9.358 MB / 0.8351 GB, free: 161 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.83, allocations: 7.938 kB / 0.8351 GB, free: 161 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/1.843, allocations: 9.819 MB / 0.8447 GB, free: 151.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00284/1.845, allocations: 1.126 MB / 0.8458 GB, free: 149.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/1.846, allocations: 79.95 kB / 0.8459 GB, free: 149.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002632/1.849, allocations: 223.8 kB / 0.8461 GB, free: 149.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004813/1.85, allocations: 278.8 kB / 0.8464 GB, free: 149.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002247/1.85, allocations: 117.3 kB / 0.8465 GB, free: 149.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004847/1.855, allocations: 3.497 MB / 0.8499 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.4e-07/1.855, allocations: 0 / 0.8499 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007635/1.862, allocations: 1.941 MB / 0.8518 GB, free: 143.8 MB / 0.5763 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%), (8,38,62.5%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01238/1.875, allocations: 10.55 MB / 0.8621 GB, free: 133.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01024/1.885, allocations: 7.851 MB / 0.8697 GB, free: 125.2 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/1.885, allocations: 7.359 kB / 0.8698 GB, free: 125.2 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004735/1.89, allocations: 3.632 MB / 0.8733 GB, free: 121.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006561/1.896, allocations: 1.395 MB / 0.8747 GB, free: 120.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09545/1.992, allocations: 67.43 MB / 0.9405 GB, free: 48.75 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007153/1.999, allocations: 7.424 MB / 0.9478 GB, free: 41.28 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005389/2.004, allocations: 2.19 MB / 0.9499 GB, free: 39.08 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005306/2.01, allocations: 4.502 MB / 0.9543 GB, free: 34.58 MB / 0.5763 GB Notification: Performance of SimCode: time 2.034e-06/2.01, allocations: 0 / 0.9543 GB, free: 34.58 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4336/2.443, allocations: 153.5 MB / 1.104 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.53/24.97, allocations: 12.02 kB / 1.104 GB, free: 109.6 MB / 0.5763 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches