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.001207/0.001207, allocations: 108.9 kB / 17.06 MB, free: 6.02 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.001267/0.001267, allocations: 199.9 kB / 18 MB, free: 5.098 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.216/1.216, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009259/0.000926, allocations: 43.94 kB / 350.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2259, allocations: 49.43 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03815/0.2641, allocations: 39.43 MB / 439.7 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.2863, allocations: 10.42 MB / 450.1 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007178/0.2935, allocations: 303 kB / 450.4 MB, free: 6.438 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01829/0.3118, allocations: 8.508 MB / 458.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.3226, allocations: 3.41 MB / 462.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006562/0.3292, allocations: 2.339 MB / 464.7 MB, free: 8.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01539/0.3446, allocations: 12.88 MB / 477.6 MB, free: 11.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03728/0.3819, allocations: 25.31 MB / 0.4911 GB, free: 1.766 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01008/0.392, allocations: 6.822 MB / 0.4977 GB, free: 10.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01093/0.403, allocations: 7.724 MB / 0.5053 GB, free: 3.176 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004564/0.4076, allocations: 1.957 MB / 0.5072 GB, free: 1.219 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006238/0.4138, allocations: 2.351 MB / 0.5095 GB, free: 14.87 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005132/0.419, allocations: 3.94 MB / 0.5133 GB, free: 10.92 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0112/0.4302, allocations: 7.56 MB / 0.5207 GB, free: 3.328 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.373/0.8033, allocations: 25.87 MB / 0.546 GB, free: 56.25 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.8033, allocations: 0 / 0.546 GB, free: 56.25 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.8033, allocations: 0 / 0.546 GB, free: 56.25 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006338/0.804, allocations: 0.5 kB / 0.546 GB, free: 56.25 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.04161/0.8456, allocations: 15 MB / 0.5606 GB, free: 52.31 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.8457, allocations: 9.5 kB / 0.5606 GB, free: 52.31 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006643/0.8523, allocations: 1.718 MB / 0.5623 GB, free: 52.19 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03221/0.8845, allocations: 6.138 MB / 0.5683 GB, free: 50.49 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0182/0.9028, allocations: 8.055 MB / 0.5762 GB, free: 48.07 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008214/0.9036, allocations: 0.901 MB / 0.5771 GB, free: 47.66 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005027/0.9087, allocations: 1.201 MB / 0.5782 GB, free: 47.26 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0437/0.9524, allocations: 18.65 MB / 0.5965 GB, free: 31.17 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006189/0.9531, allocations: 19.89 kB / 0.5965 GB, free: 31.15 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004506/0.9576, allocations: 497.3 kB / 0.5969 GB, free: 30.67 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004785/0.9581, allocations: 0.6421 MB / 0.5976 GB, free: 30.03 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03151/0.9896, allocations: 16.77 MB / 0.6139 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0944/1.084, allocations: 58.12 MB / 0.6707 GB, free: 2.77 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02611/1.11, allocations: 32.87 MB / 0.7028 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005634/1.116, allocations: 3.707 MB / 0.7064 GB, free: 10.3 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01562/1.132, allocations: 8.64 MB / 0.7149 GB, free: 1.711 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.622e-05/1.132, allocations: 73.25 kB / 0.7149 GB, free: 1.629 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.601e-06/1.132, allocations: 0 / 0.7149 GB, free: 1.629 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03564/1.167, allocations: 17.56 MB / 0.7321 GB, free: 15.97 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/1.167, allocations: 97.08 kB / 0.7322 GB, free: 15.87 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01047/1.178, allocations: 5.016 MB / 0.7371 GB, free: 10.86 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007159/1.179, allocations: 89.7 kB / 0.7372 GB, free: 10.76 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003881/1.183, allocations: 5.447 MB / 0.7425 GB, free: 5.281 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001607/1.184, allocations: 1.346 MB / 0.7438 GB, free: 3.945 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003214/1.187, allocations: 1.322 MB / 0.7451 GB, free: 2.613 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 9.079e-05/1.188, allocations: 305.1 kB / 0.7454 GB, free: 2.312 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.236/1.424, allocations: 2.899 MB / 0.7482 GB, free: 223.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005753/1.429, allocations: 5.875 MB / 0.7539 GB, free: 219.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008874/1.438, allocations: 9.445 MB / 0.7632 GB, free: 213.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.317e-05/1.438, allocations: 31.44 kB / 0.7632 GB, free: 213.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01498/1.453, allocations: 9.84 MB / 0.7728 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.44e-05/1.453, allocations: 48.59 kB / 0.7729 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/1.454, allocations: 101.7 kB / 0.7729 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/1.456, allocations: 0.9358 MB / 0.7739 GB, free: 209.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005285/1.461, allocations: 1.583 MB / 0.7754 GB, free: 209.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009392/1.471, allocations: 10.18 MB / 0.7854 GB, free: 202.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004835/1.475, allocations: 403 kB / 0.7857 GB, free: 202.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000917/1.476, allocations: 354 kB / 0.7861 GB, free: 202.2 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.006965/1.483, allocations: 4.245 MB / 0.7902 GB, free: 200.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.485, allocations: 0.5159 MB / 0.7907 GB, free: 200.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009902/1.494, allocations: 6.483 MB / 0.7971 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/1.495, allocations: 44 kB / 0.7971 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.145e-05/1.495, allocations: 15.88 kB / 0.7971 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.043e-05/1.495, allocations: 18.98 kB / 0.7971 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02715/1.522, allocations: 15.68 MB / 0.8124 GB, free: 181.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/1.522, allocations: 0 / 0.8124 GB, free: 181.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002991/1.525, allocations: 0.7476 MB / 0.8132 GB, free: 181.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001954/1.527, allocations: 0.7887 MB / 0.8139 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004278/1.527, allocations: 95.91 kB / 0.814 GB, free: 180.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008042/1.535, allocations: 9.346 MB / 0.8232 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.535, allocations: 4.031 kB / 0.8232 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.547, allocations: 9.493 MB / 0.8324 GB, free: 161.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002478/1.55, allocations: 1.063 MB / 0.8335 GB, free: 160.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.551, allocations: 68 kB / 0.8335 GB, free: 160.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002617/1.553, allocations: 223.8 kB / 0.8338 GB, free: 160.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005467/1.554, allocations: 266.7 kB / 0.834 GB, free: 159.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002891/1.554, allocations: 116 kB / 0.8341 GB, free: 159.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00476/1.559, allocations: 3.35 MB / 0.8374 GB, free: 156.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.41e-07/1.559, allocations: 0 / 0.8374 GB, free: 156.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006188/1.565, allocations: 1.879 MB / 0.8392 GB, free: 154.6 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.01168/1.577, allocations: 10.2 MB / 0.8492 GB, free: 144.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009165/1.586, allocations: 7.679 MB / 0.8567 GB, free: 136.5 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.586, allocations: 0 / 0.8567 GB, free: 136.5 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004259/1.59, allocations: 3.555 MB / 0.8602 GB, free: 132.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006275/1.597, allocations: 1.284 MB / 0.8614 GB, free: 131.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0938/1.69, allocations: 64.85 MB / 0.9247 GB, free: 62.95 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00901/1.7, allocations: 7.32 MB / 0.9319 GB, free: 55.59 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00572/1.705, allocations: 2.145 MB / 0.934 GB, free: 53.44 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005491/1.711, allocations: 4.33 MB / 0.9382 GB, free: 49.11 MB / 0.5763 GB Notification: Performance of SimCode: time 8.21e-07/1.711, allocations: 0 / 0.9382 GB, free: 49.11 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.388/6.099, allocations: 147.5 MB / 1.082 GB, free: 131.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.73/32.83, allocations: 16.69 kB / 1.082 GB, free: 131.1 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