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.001758/0.001758, allocations: 112.9 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.00197/0.00197, allocations: 196 kB / 18.01 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.47/1.47, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 51.92 kB / 350.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2513, 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.04762/0.2989, allocations: 39.43 MB / 439.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02504/0.324, allocations: 10.43 MB / 450.1 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0077/0.3318, allocations: 307 kB / 450.4 MB, free: 6.434 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02108/0.3529, allocations: 8.505 MB / 459 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01272/0.3656, allocations: 3.398 MB / 462.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007552/0.3732, allocations: 2.33 MB / 464.7 MB, free: 8.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01893/0.3921, allocations: 12.88 MB / 477.6 MB, free: 11.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04273/0.4349, allocations: 25.31 MB / 0.4911 GB, free: 1.777 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0128/0.4478, allocations: 6.794 MB / 0.4977 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01355/0.4614, allocations: 7.724 MB / 0.5053 GB, free: 3.215 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005798/0.4672, allocations: 1.957 MB / 0.5072 GB, free: 1.258 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008082/0.4753, allocations: 2.347 MB / 0.5095 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007122/0.4825, allocations: 3.943 MB / 0.5133 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01494/0.4974, allocations: 7.556 MB / 0.5207 GB, free: 3.371 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4794/0.9769, allocations: 25.93 MB / 0.546 GB, free: 56.19 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.9769, allocations: 0 / 0.546 GB, free: 56.19 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.9769, allocations: 1.031 kB / 0.546 GB, free: 56.19 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007538/0.9777, allocations: 0 / 0.546 GB, free: 56.19 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.04563/1.023, allocations: 15.28 MB / 0.5609 GB, free: 51.77 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/1.023, allocations: 16.02 kB / 0.561 GB, free: 51.77 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008314/1.032, allocations: 1.715 MB / 0.5626 GB, free: 51.65 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03497/1.067, allocations: 6.207 MB / 0.5687 GB, free: 49.91 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01769/1.084, allocations: 8.076 MB / 0.5766 GB, free: 47.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000848/1.085, allocations: 0.905 MB / 0.5775 GB, free: 46.99 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005282/1.091, allocations: 1.196 MB / 0.5786 GB, free: 46.59 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04506/1.136, allocations: 18.65 MB / 0.5968 GB, free: 30.47 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000564/1.136, allocations: 23.89 kB / 0.5969 GB, free: 30.45 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00503/1.141, allocations: 0.4969 MB / 0.5973 GB, free: 29.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005217/1.142, allocations: 0.6382 MB / 0.598 GB, free: 29.32 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03416/1.176, allocations: 16.77 MB / 0.6143 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1174/1.293, allocations: 58.3 MB / 0.6713 GB, free: 1.934 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03232/1.326, allocations: 32.88 MB / 0.7034 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006682/1.333, allocations: 3.712 MB / 0.707 GB, free: 9.453 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01776/1.35, allocations: 8.645 MB / 0.7155 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.72e-05/1.35, allocations: 69.31 kB / 0.7155 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 6.091e-06/1.35, allocations: 0 / 0.7155 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04491/1.395, allocations: 17.72 MB / 0.7328 GB, free: 14.99 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/1.396, allocations: 90.47 kB / 0.7329 GB, free: 14.89 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01115/1.407, allocations: 5.017 MB / 0.7378 GB, free: 9.879 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007275/1.407, allocations: 89.7 kB / 0.7379 GB, free: 9.785 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005059/1.413, allocations: 5.638 MB / 0.7434 GB, free: 4.133 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002084/1.415, allocations: 1.419 MB / 0.7448 GB, free: 2.734 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004233/1.419, allocations: 1.323 MB / 0.7461 GB, free: 1.402 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001294/1.419, allocations: 305.1 kB / 0.7464 GB, free: 1.102 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2166/1.636, allocations: 2.904 MB / 0.7492 GB, free: 223.9 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006554/1.642, allocations: 5.876 MB / 0.7549 GB, free: 220.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/1.653, allocations: 9.441 MB / 0.7642 GB, free: 213.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/1.653, allocations: 27 kB / 0.7642 GB, free: 213.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0199/1.673, allocations: 9.863 MB / 0.7738 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/1.674, allocations: 54.47 kB / 0.7739 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002425/1.674, allocations: 100.3 kB / 0.774 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002483/1.676, allocations: 0.9384 MB / 0.7749 GB, free: 209.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005976/1.682, allocations: 1.584 MB / 0.7764 GB, free: 209.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01153/1.694, allocations: 10.19 MB / 0.7864 GB, free: 202.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006319/1.7, allocations: 409.2 kB / 0.7868 GB, free: 202.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001679/1.702, allocations: 358.9 kB / 0.7871 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.0101/1.712, allocations: 4.249 MB / 0.7913 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002209/1.714, allocations: 0.5343 MB / 0.7918 GB, free: 199 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01458/1.729, allocations: 6.481 MB / 0.7981 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-05/1.729, allocations: 36 kB / 0.7982 GB, free: 193.5 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.843e-05/1.729, allocations: 19.94 kB / 0.7982 GB, free: 193.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.058e-05/1.729, allocations: 18.75 kB / 0.7982 GB, free: 193.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03495/1.764, allocations: 15.69 MB / 0.8135 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.643e-05/1.764, allocations: 4 kB / 0.8135 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003454/1.768, allocations: 0.7509 MB / 0.8143 GB, free: 179.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002215/1.77, allocations: 0.7878 MB / 0.815 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006759/1.771, allocations: 87.91 kB / 0.8151 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00903/1.78, allocations: 9.356 MB / 0.8242 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.78, allocations: 4 kB / 0.8242 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01411/1.794, allocations: 9.525 MB / 0.8335 GB, free: 160 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003155/1.797, allocations: 1.08 MB / 0.8346 GB, free: 158.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001819/1.799, allocations: 71.98 kB / 0.8347 GB, free: 158.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003369/1.802, allocations: 227.8 kB / 0.8349 GB, free: 158.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007232/1.803, allocations: 258.8 kB / 0.8351 GB, free: 158.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004076/1.803, allocations: 112 kB / 0.8352 GB, free: 158.3 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006684/1.81, allocations: 3.354 MB / 0.8385 GB, free: 154.9 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.834e-06/1.81, allocations: 0 / 0.8385 GB, free: 154.9 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008677/1.819, allocations: 1.878 MB / 0.8404 GB, free: 153.1 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.01463/1.833, allocations: 10.24 MB / 0.8504 GB, free: 142.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01153/1.845, allocations: 7.68 MB / 0.8579 GB, free: 135 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/1.845, allocations: 0 / 0.8579 GB, free: 135 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005573/1.851, allocations: 3.563 MB / 0.8613 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.007623/1.858, allocations: 1.288 MB / 0.8626 GB, free: 130.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1093/1.968, allocations: 65.21 MB / 0.9263 GB, free: 61.04 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01022/1.978, allocations: 7.316 MB / 0.9334 GB, free: 53.69 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006245/1.984, allocations: 2.148 MB / 0.9355 GB, free: 51.54 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006417/1.991, allocations: 4.33 MB / 0.9397 GB, free: 47.21 MB / 0.5763 GB Notification: Performance of SimCode: time 8.91e-07/1.991, allocations: 0 / 0.9397 GB, free: 47.21 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4705/2.461, allocations: 147.3 MB / 1.084 GB, free: 129.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.76/24.22, allocations: 11.75 kB / 1.084 GB, free: 129.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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