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.001615/0.001615, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001671/0.001671, allocations: 200 kB / 18.01 MB, free: 5.066 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 47.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2702, 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.0411/0.3114, allocations: 39.43 MB / 439.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02375/0.3352, allocations: 10.42 MB / 450.1 MB, free: 6.758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008267/0.3435, allocations: 303 kB / 450.4 MB, free: 6.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0201/0.3636, allocations: 8.58 MB / 459 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.3754, allocations: 3.484 MB / 462.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007173/0.3826, allocations: 2.328 MB / 464.8 MB, free: 8.039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0185/0.4011, allocations: 12.88 MB / 477.7 MB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04016/0.4413, allocations: 25.32 MB / 0.4912 GB, free: 1.633 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01198/0.4534, allocations: 6.814 MB / 0.4979 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01457/0.468, allocations: 7.732 MB / 0.5054 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005721/0.4737, allocations: 1.953 MB / 0.5074 GB, free: 1.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007286/0.4811, allocations: 2.343 MB / 0.5096 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006232/0.4873, allocations: 3.947 MB / 0.5135 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01364/0.501, allocations: 7.552 MB / 0.5209 GB, free: 3.207 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4809/0.9819, allocations: 25.92 MB / 0.5462 GB, free: 56.16 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.982, allocations: 3.438 kB / 0.5462 GB, free: 56.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.982, allocations: 3.594 kB / 0.5462 GB, free: 56.16 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007863/0.9828, allocations: 0 / 0.5462 GB, free: 56.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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04448/1.027, allocations: 15.29 MB / 0.5611 GB, free: 51.75 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/1.027, allocations: 10 kB / 0.5611 GB, free: 51.75 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006848/1.034, allocations: 1.71 MB / 0.5628 GB, free: 51.63 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03344/1.068, allocations: 6.207 MB / 0.5689 GB, free: 49.78 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01569/1.083, allocations: 8.082 MB / 0.5768 GB, free: 47.35 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006579/1.084, allocations: 0.9038 MB / 0.5776 GB, free: 46.94 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005134/1.089, allocations: 1.197 MB / 0.5788 GB, free: 46.54 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04114/1.13, allocations: 18.65 MB / 0.597 GB, free: 30.43 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003915/1.131, allocations: 23.89 kB / 0.597 GB, free: 30.4 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002846/1.134, allocations: 500 kB / 0.5975 GB, free: 29.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004031/1.134, allocations: 0.6421 MB / 0.5981 GB, free: 29.28 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02912/1.163, allocations: 16.76 MB / 0.6145 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09656/1.26, allocations: 58.29 MB / 0.6714 GB, free: 1.883 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0269/1.287, allocations: 32.89 MB / 0.7036 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006269/1.293, allocations: 3.697 MB / 0.7072 GB, free: 9.406 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0156/1.309, allocations: 8.653 MB / 0.7156 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.635e-05/1.309, allocations: 77.23 kB / 0.7157 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.08e-06/1.309, allocations: 2.188 kB / 0.7157 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.0362/1.345, allocations: 17.71 MB / 0.733 GB, free: 14.94 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/1.345, allocations: 90.47 kB / 0.7331 GB, free: 14.84 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007552/1.353, allocations: 5.021 MB / 0.738 GB, free: 9.82 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0005718/1.353, allocations: 85.7 kB / 0.7381 GB, free: 9.73 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003817/1.357, allocations: 5.635 MB / 0.7436 GB, free: 4.082 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001518/1.359, allocations: 1.417 MB / 0.7449 GB, free: 2.684 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002053/1.361, allocations: 1.331 MB / 0.7462 GB, free: 1.344 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 9.888e-05/1.361, allocations: 301.1 kB / 0.7465 GB, free: 1.047 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2415/1.602, allocations: 2.901 MB / 0.7494 GB, free: 223.7 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006409/1.609, allocations: 5.875 MB / 0.7551 GB, free: 220 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.619, allocations: 9.447 MB / 0.7643 GB, free: 213.2 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/1.619, allocations: 30.8 kB / 0.7644 GB, free: 213.2 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01663/1.636, allocations: 9.866 MB / 0.774 GB, free: 209.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/1.636, allocations: 50.91 kB / 0.774 GB, free: 209.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001647/1.636, allocations: 104.7 kB / 0.7741 GB, free: 209.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/1.639, allocations: 0.9337 MB / 0.7751 GB, free: 209.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005284/1.644, allocations: 1.585 MB / 0.7766 GB, free: 209 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/1.654, allocations: 10.19 MB / 0.7866 GB, free: 202.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005144/1.66, allocations: 406.6 kB / 0.7869 GB, free: 202 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/1.661, allocations: 359 kB / 0.7873 GB, free: 201.9 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.007279/1.668, allocations: 4.247 MB / 0.7914 GB, free: 199.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001437/1.669, allocations: 0.54 MB / 0.792 GB, free: 198.8 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/1.68, allocations: 6.482 MB / 0.7983 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/1.68, allocations: 36 kB / 0.7983 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/1.68, allocations: 15.94 kB / 0.7983 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.044e-05/1.681, allocations: 26.55 kB / 0.7984 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02398/1.705, allocations: 15.69 MB / 0.8137 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/1.705, allocations: 3.797 kB / 0.8137 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002881/1.707, allocations: 0.7526 MB / 0.8144 GB, free: 179.8 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00193/1.709, allocations: 0.7801 MB / 0.8152 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002591/1.71, allocations: 91.92 kB / 0.8153 GB, free: 178.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008085/1.718, allocations: 9.352 MB / 0.8244 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.718, allocations: 12.09 kB / 0.8244 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/1.729, allocations: 9.517 MB / 0.8337 GB, free: 159.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0022/1.732, allocations: 1.084 MB / 0.8348 GB, free: 158.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007819/1.732, allocations: 72.55 kB / 0.8348 GB, free: 158.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/1.735, allocations: 223.8 kB / 0.8351 GB, free: 158.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005262/1.735, allocations: 266.7 kB / 0.8353 GB, free: 158.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/1.735, allocations: 108 kB / 0.8354 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004213/1.74, allocations: 3.354 MB / 0.8387 GB, free: 154.9 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2e-07/1.74, allocations: 0 / 0.8387 GB, free: 154.9 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006289/1.746, allocations: 1.879 MB / 0.8405 GB, free: 153 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.01205/1.758, allocations: 10.25 MB / 0.8505 GB, free: 142.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01002/1.768, allocations: 7.677 MB / 0.858 GB, free: 134.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.768, allocations: 3.938 kB / 0.858 GB, free: 134.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00449/1.773, allocations: 3.562 MB / 0.8615 GB, free: 131.3 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005416/1.778, allocations: 1.291 MB / 0.8628 GB, free: 130 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08758/1.866, allocations: 65.2 MB / 0.9264 GB, free: 60.99 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008906/1.875, allocations: 7.316 MB / 0.9336 GB, free: 53.63 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005497/1.88, allocations: 2.145 MB / 0.9357 GB, free: 51.48 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005528/1.886, allocations: 4.33 MB / 0.9399 GB, free: 47.16 MB / 0.5763 GB Notification: Performance of SimCode: time 7.01e-07/1.886, allocations: 0 / 0.9399 GB, free: 47.16 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3974/2.283, allocations: 147.3 MB / 1.084 GB, free: 129.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.01/24.3, allocations: 19.19 kB / 1.084 GB, free: 129.2 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