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.SMR_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.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.001142/0.001142, allocations: 112 kB / 17.06 MB, free: 5.988 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.00113/0.00113, allocations: 195.9 kB / 18 MB, free: 5.074 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009675/0.0009675, allocations: 47.92 kB / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2754, allocations: 49.44 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03925/0.3147, allocations: 39.43 MB / 439.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02355/0.3383, allocations: 10.43 MB / 450.1 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009265/0.3476, allocations: 307 kB / 450.4 MB, free: 6.445 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02059/0.3683, allocations: 8.569 MB / 459 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01252/0.3808, allocations: 3.484 MB / 462.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007383/0.3882, allocations: 2.337 MB / 464.8 MB, free: 8.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0173/0.4055, allocations: 12.88 MB / 477.7 MB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04308/0.4487, allocations: 25.32 MB / 0.4912 GB, free: 1.625 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01141/0.4601, allocations: 6.81 MB / 0.4979 GB, free: 10.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01237/0.4725, allocations: 7.732 MB / 0.5054 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00547/0.4781, allocations: 1.957 MB / 0.5073 GB, free: 1.078 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008037/0.4861, allocations: 2.335 MB / 0.5096 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006569/0.4927, allocations: 3.955 MB / 0.5135 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01593/0.5087, allocations: 7.556 MB / 0.5209 GB, free: 3.195 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5077/1.016, allocations: 25.93 MB / 0.5462 GB, free: 56.22 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.809e-06/1.016, allocations: 0 / 0.5462 GB, free: 56.22 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.045e-06/1.016, allocations: 0 / 0.5462 GB, free: 56.22 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009202/1.017, allocations: 0 / 0.5462 GB, free: 56.22 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05106/1.068, allocations: 15.28 MB / 0.5611 GB, free: 51.8 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.069, allocations: 9.875 kB / 0.5611 GB, free: 51.8 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007977/1.077, allocations: 1.711 MB / 0.5628 GB, free: 51.68 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03404/1.111, allocations: 6.209 MB / 0.5689 GB, free: 49.85 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01891/1.13, allocations: 8.078 MB / 0.5767 GB, free: 47.42 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008375/1.13, allocations: 0.9063 MB / 0.5776 GB, free: 47.01 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005563/1.136, allocations: 1.193 MB / 0.5788 GB, free: 46.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04908/1.185, allocations: 18.65 MB / 0.597 GB, free: 30.51 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000608/1.186, allocations: 27.45 kB / 0.597 GB, free: 30.49 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005063/1.191, allocations: 0.497 MB / 0.5975 GB, free: 30 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005637/1.191, allocations: 0.6382 MB / 0.5981 GB, free: 29.36 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03461/1.226, allocations: 16.76 MB / 0.6145 GB, free: 12.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1069/1.333, allocations: 58.29 MB / 0.6714 GB, free: 1.973 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02665/1.36, allocations: 32.88 MB / 0.7035 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006423/1.366, allocations: 3.717 MB / 0.7072 GB, free: 9.492 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01989/1.386, allocations: 8.646 MB / 0.7156 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.818e-05/1.386, allocations: 77.23 kB / 0.7157 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 6.512e-06/1.386, allocations: 4 kB / 0.7157 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04049/1.427, allocations: 17.7 MB / 0.733 GB, free: 15.03 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/1.427, allocations: 98.47 kB / 0.7331 GB, free: 14.92 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008054/1.435, allocations: 5.02 MB / 0.738 GB, free: 9.91 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007653/1.436, allocations: 89.7 kB / 0.7381 GB, free: 9.816 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003725/1.439, allocations: 5.636 MB / 0.7436 GB, free: 4.168 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001637/1.441, allocations: 1.415 MB / 0.745 GB, free: 2.77 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002176/1.443, allocations: 1.327 MB / 0.7463 GB, free: 1.434 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001054/1.443, allocations: 301.1 kB / 0.7465 GB, free: 1.137 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2399/1.683, allocations: 2.904 MB / 0.7494 GB, free: 223.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006402/1.69, allocations: 5.874 MB / 0.7551 GB, free: 220.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/1.7, allocations: 9.442 MB / 0.7643 GB, free: 213.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001386/1.7, allocations: 27.47 kB / 0.7644 GB, free: 213.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01811/1.719, allocations: 9.868 MB / 0.774 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/1.719, allocations: 48.25 kB / 0.774 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/1.719, allocations: 103.1 kB / 0.7741 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/1.721, allocations: 0.933 MB / 0.7751 GB, free: 209.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005819/1.727, allocations: 1.587 MB / 0.7766 GB, free: 209.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/1.738, allocations: 10.19 MB / 0.7866 GB, free: 202.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005953/1.744, allocations: 417.2 kB / 0.787 GB, free: 202.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00133/1.745, allocations: 348.7 kB / 0.7873 GB, free: 202.1 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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.008577/1.754, allocations: 4.249 MB / 0.7914 GB, free: 199.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00163/1.755, allocations: 0.535 MB / 0.792 GB, free: 199.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/1.766, allocations: 6.493 MB / 0.7983 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.573e-05/1.766, allocations: 40.5 kB / 0.7983 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/1.766, allocations: 15.94 kB / 0.7984 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.46e-05/1.766, allocations: 22.88 kB / 0.7984 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02738/1.794, allocations: 15.69 MB / 0.8137 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.584e-05/1.794, allocations: 4 kB / 0.8137 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003282/1.797, allocations: 0.7493 MB / 0.8144 GB, free: 180 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00207/1.799, allocations: 0.784 MB / 0.8152 GB, free: 179.2 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006002/1.8, allocations: 91.91 kB / 0.8153 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008627/1.809, allocations: 9.351 MB / 0.8244 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.809, allocations: 7.938 kB / 0.8244 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/1.822, allocations: 9.52 MB / 0.8337 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003423/1.826, allocations: 1.088 MB / 0.8348 GB, free: 159.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00164/1.827, allocations: 68.56 kB / 0.8348 GB, free: 159 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003464/1.831, allocations: 219.8 kB / 0.8351 GB, free: 158.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008601/1.832, allocations: 266.7 kB / 0.8353 GB, free: 158.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003272/1.832, allocations: 116 kB / 0.8354 GB, free: 158.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006018/1.838, allocations: 3.35 MB / 0.8387 GB, free: 155.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4.91e-07/1.838, allocations: 0 / 0.8387 GB, free: 155.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009088/1.847, allocations: 1.875 MB / 0.8405 GB, free: 153.2 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.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 (368): * Single equations (assignments): 363 * 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,59.4%), (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.01502/1.862, allocations: 10.25 MB / 0.8505 GB, free: 142.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01196/1.874, allocations: 7.669 MB / 0.858 GB, free: 135.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/1.874, allocations: 0 / 0.858 GB, free: 135.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00546/1.88, allocations: 3.572 MB / 0.8615 GB, free: 131.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006612/1.887, allocations: 1.29 MB / 0.8628 GB, free: 130.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1038/1.99, allocations: 65.2 MB / 0.9264 GB, free: 61.17 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008625/1.999, allocations: 7.32 MB / 0.9336 GB, free: 53.81 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005181/2.004, allocations: 2.148 MB / 0.9357 GB, free: 51.66 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004944/2.009, allocations: 4.33 MB / 0.9399 GB, free: 47.33 MB / 0.5763 GB Notification: Performance of SimCode: time 2.415e-06/2.009, allocations: 0 / 0.9399 GB, free: 47.33 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4375/2.447, allocations: 147.3 MB / 1.084 GB, free: 129.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.47/24.92, allocations: 16.2 kB / 1.084 GB, free: 129.4 MB / 0.5763 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches