Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 111.1 kB / 20.44 MB, free: 1.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 210.2 kB / 23.72 MB, free: 4.422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.418/1.418, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 47.92 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.212, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04131/0.2533, allocations: 34.38 MB / 465.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02172/0.2751, allocations: 10.36 MB / 475.9 MB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006642/0.2817, allocations: 370 kB / 476.2 MB, free: 9.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02044/0.3021, allocations: 8.024 MB / 484.3 MB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0114/0.3135, allocations: 3.511 MB / 487.8 MB, free: 13.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007076/0.3206, allocations: 2.339 MB / 490.1 MB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0184/0.339, allocations: 13.04 MB / 0.4914 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0319/0.3709, allocations: 17.37 MB / 0.5083 GB, free: 12.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01084/0.3817, allocations: 6.986 MB / 0.5152 GB, free: 5.852 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0137/0.3955, allocations: 7.927 MB / 0.5229 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005117/0.4006, allocations: 1.949 MB / 0.5248 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006363/0.4069, allocations: 2.359 MB / 0.5271 GB, free: 9.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005337/0.4123, allocations: 3.963 MB / 0.531 GB, free: 5.617 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3684/0.7807, allocations: 5.906 MB / 0.5367 GB, free: 43.99 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02427/0.8049, allocations: 26.07 MB / 0.5622 GB, free: 39.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.8049, allocations: 2.156 kB / 0.5622 GB, free: 39.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.8049, allocations: 0 / 0.5622 GB, free: 39.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005986/0.8055, allocations: 0 / 0.5622 GB, free: 39.71 MB / 446.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.04004/0.8456, allocations: 15.24 MB / 0.5771 GB, free: 31.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.8456, allocations: 11.59 kB / 0.5771 GB, free: 31.69 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004595/0.8502, allocations: 1.719 MB / 0.5788 GB, free: 30.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03243/0.8827, allocations: 6.121 MB / 0.5848 GB, free: 27.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01626/0.8989, allocations: 8.097 MB / 0.5927 GB, free: 22.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005278/0.8994, allocations: 0.9057 MB / 0.5935 GB, free: 22.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00366/0.9031, allocations: 1.197 MB / 0.5947 GB, free: 21.13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03681/0.9399, allocations: 18.92 MB / 0.6132 GB, free: 2.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004598/0.9404, allocations: 23.55 kB / 0.6132 GB, free: 2.078 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003377/0.9437, allocations: 0.4924 MB / 0.6137 GB, free: 1.598 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005308/0.9443, allocations: 0.6382 MB / 0.6143 GB, free: 0.957 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03598/0.9803, allocations: 16.74 MB / 0.6307 GB, free: 204 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/1.083, allocations: 52.47 MB / 0.6819 GB, free: 11.51 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01799/1.101, allocations: 10.27 MB / 0.6919 GB, free: 2.895 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005969/1.107, allocations: 3.401 MB / 0.6953 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01887/1.125, allocations: 7.724 MB / 0.7028 GB, free: 7.848 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.951e-05/1.126, allocations: 81.23 kB / 0.7029 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.783e-06/1.126, allocations: 0 / 0.7029 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.03799/1.164, allocations: 17.28 MB / 0.7197 GB, free: 6.508 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.939e-05/1.164, allocations: 93.84 kB / 0.7198 GB, free: 6.406 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008292/1.172, allocations: 5.204 MB / 0.7249 GB, free: 1.207 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005299/1.172, allocations: 89.7 kB / 0.725 GB, free: 1.113 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004366/1.177, allocations: 5.642 MB / 0.7305 GB, free: 11.46 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001605/1.178, allocations: 1.415 MB / 0.7319 GB, free: 10.06 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002251/1.181, allocations: 1.338 MB / 0.7332 GB, free: 8.711 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001207/1.181, allocations: 301.1 kB / 0.7335 GB, free: 8.414 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004875/1.186, allocations: 2.918 MB / 0.7363 GB, free: 5.492 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007437/1.193, allocations: 5.922 MB / 0.7421 GB, free: 14.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01307/1.206, allocations: 9.46 MB / 0.7514 GB, free: 3.723 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.87e-05/1.206, allocations: 28 kB / 0.7514 GB, free: 3.695 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.224/1.43, allocations: 9.871 MB / 0.761 GB, free: 200.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/1.43, allocations: 47.47 kB / 0.7611 GB, free: 200.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002288/1.431, allocations: 99.75 kB / 0.7612 GB, free: 200.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002599/1.433, allocations: 0.938 MB / 0.7621 GB, free: 200.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005579/1.439, allocations: 1.588 MB / 0.7636 GB, free: 200.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/1.449, allocations: 9.758 MB / 0.7732 GB, free: 196 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005074/1.454, allocations: 413.9 kB / 0.7736 GB, free: 195.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007064/1.455, allocations: 354.9 kB / 0.7739 GB, free: 195.8 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.005673/1.46, allocations: 4.244 MB / 0.778 GB, free: 193.8 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009719/1.461, allocations: 0.5394 MB / 0.7786 GB, free: 193.8 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009386/1.471, allocations: 6.46 MB / 0.7849 GB, free: 191.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.372e-05/1.471, allocations: 41.66 kB / 0.7849 GB, free: 191.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/1.471, allocations: 15.66 kB / 0.7849 GB, free: 191.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.271e-05/1.471, allocations: 20.72 kB / 0.785 GB, free: 191.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/1.495, allocations: 15 MB / 0.7996 GB, free: 182.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/1.495, allocations: 4 kB / 0.7996 GB, free: 182.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003201/1.498, allocations: 0.7456 MB / 0.8003 GB, free: 182.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/1.5, allocations: 0.7856 MB / 0.8011 GB, free: 181.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002794/1.5, allocations: 95.42 kB / 0.8012 GB, free: 181.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008295/1.508, allocations: 8.932 MB / 0.8099 GB, free: 173 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.508, allocations: 0 / 0.8099 GB, free: 173 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/1.521, allocations: 9.523 MB / 0.8192 GB, free: 164.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/1.524, allocations: 1.031 MB / 0.8202 GB, free: 164.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007748/1.524, allocations: 74.25 kB / 0.8203 GB, free: 164 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/1.527, allocations: 219.8 kB / 0.8205 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005223/1.527, allocations: 282.5 kB / 0.8208 GB, free: 163.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002505/1.528, allocations: 120 kB / 0.8209 GB, free: 163.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004166/1.532, allocations: 3.359 MB / 0.8242 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/1.532, allocations: 0 / 0.8242 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.005557/1.537, allocations: 1.878 MB / 0.826 GB, free: 158.3 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.01164/1.549, allocations: 10.25 MB / 0.836 GB, free: 147.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.00956/1.558, allocations: 7.218 MB / 0.8431 GB, free: 140.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.558, allocations: 448 / 0.8431 GB, free: 140.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004126/1.563, allocations: 3.183 MB / 0.8462 GB, free: 137.4 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00595/1.569, allocations: 1.299 MB / 0.8474 GB, free: 136.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08218/1.651, allocations: 65.22 MB / 0.9111 GB, free: 67.14 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006725/1.657, allocations: 6.923 MB / 0.9179 GB, free: 60.18 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005015/1.662, allocations: 2.16 MB / 0.92 GB, free: 58.02 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004634/1.667, allocations: 4.35 MB / 0.9242 GB, free: 53.67 MB / 0.5763 GB Notification: Performance of SimCode: time 1.222e-06/1.667, allocations: 0 / 0.9242 GB, free: 53.67 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.409/2.076, allocations: 155.8 MB / 1.076 GB, free: 132.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.16/21.24, allocations: 11.98 kB / 1.076 GB, free: 132.4 MB / 0.5763 GB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 36.748103327990975]