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.002012/0.002012, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.00255/0.00255, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.414/1.414, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001637/0.001637, allocations: 47.92 kB / 373 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09752, allocations: 53.32 MB / 426.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2251/0.3226, allocations: 40.25 MB / 466.6 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0264/0.349, allocations: 10.68 MB / 477.3 MB, free: 8.848 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009445/0.3585, allocations: 369.1 kB / 477.6 MB, free: 8.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02224/0.3807, allocations: 8.636 MB / 486.3 MB, free: 2.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01353/0.3942, allocations: 3.482 MB / 489.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008005/0.4022, allocations: 2.376 MB / 492.1 MB, free: 13.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01994/0.4222, allocations: 12.96 MB / 0.4933 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03929/0.4615, allocations: 19.65 MB / 0.5124 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01294/0.4744, allocations: 6.955 MB / 0.5192 GB, free: 7.234 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0135/0.4879, allocations: 7.903 MB / 0.527 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005336/0.4932, allocations: 1.953 MB / 0.5289 GB, free: 13.35 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007424/0.5007, allocations: 2.371 MB / 0.5312 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006282/0.5069, allocations: 3.97 MB / 0.5351 GB, free: 7 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01418/0.5211, allocations: 7.56 MB / 0.5424 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03469/0.5558, allocations: 25.97 MB / 0.5678 GB, free: 5.355 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.5558, allocations: 0 / 0.5678 GB, free: 5.355 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.5558, allocations: 0 / 0.5678 GB, free: 5.355 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0006943/0.5565, allocations: 0 / 0.5678 GB, free: 5.355 MB / 478.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.04589/0.6024, allocations: 15.34 MB / 0.5828 GB, free: 5.879 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.6025, allocations: 8.031 kB / 0.5828 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005714/0.6082, allocations: 1.715 MB / 0.5845 GB, free: 4.145 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03508/0.6432, allocations: 6.123 MB / 0.5904 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01846/0.6617, allocations: 8.096 MB / 0.5983 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001009/0.6627, allocations: 0.9071 MB / 0.5992 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004485/0.6672, allocations: 1.195 MB / 0.6004 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04671/0.7139, allocations: 18.7 MB / 0.6187 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005432/0.7144, allocations: 19.89 kB / 0.6187 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003653/0.7181, allocations: 0.4922 MB / 0.6192 GB, free: 436 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1887/0.9068, allocations: 0.6351 MB / 0.6198 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0371/0.9439, allocations: 16.8 MB / 0.6362 GB, free: 147.2 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09172/1.036, allocations: 58.99 MB / 0.6938 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01961/1.055, allocations: 32.8 MB / 0.7258 GB, free: 65.17 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00518/1.06, allocations: 3.414 MB / 0.7292 GB, free: 61.75 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01543/1.076, allocations: 8.892 MB / 0.7378 GB, free: 52.83 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/1.076, allocations: 73.25 kB / 0.7379 GB, free: 52.75 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=349): time 5.45e-06/1.076, allocations: 4 kB / 0.7379 GB, free: 52.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=389): time 0.03402/1.11, allocations: 17.72 MB / 0.7552 GB, free: 34.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/1.11, allocations: 94.47 kB / 0.7553 GB, free: 34.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008085/1.118, allocations: 5.046 MB / 0.7602 GB, free: 29.75 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006812/1.119, allocations: 85.7 kB / 0.7603 GB, free: 29.66 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00257/1.121, allocations: 5.644 MB / 0.7658 GB, free: 24.01 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001315/1.123, allocations: 1.417 MB / 0.7672 GB, free: 22.61 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003021/1.126, allocations: 1.338 MB / 0.7685 GB, free: 21.26 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.003e-05/1.126, allocations: 305.1 kB / 0.7688 GB, free: 20.96 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004169/1.13, allocations: 2.91 MB / 0.7717 GB, free: 18.05 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005495/1.135, allocations: 5.881 MB / 0.7774 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009995/1.145, allocations: 9.453 MB / 0.7866 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/1.145, allocations: 32 kB / 0.7867 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02178/1.167, allocations: 9.866 MB / 0.7963 GB, free: 5.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/1.167, allocations: 48 kB / 0.7963 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/1.168, allocations: 104.4 kB / 0.7964 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002948/1.171, allocations: 0.9443 MB / 0.7974 GB, free: 4.801 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006406/1.177, allocations: 1.583 MB / 0.7989 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01488/1.192, allocations: 10.18 MB / 0.8088 GB, free: 8.613 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005441/1.197, allocations: 415.3 kB / 0.8092 GB, free: 8.207 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/1.199, allocations: 356 kB / 0.8096 GB, free: 7.859 MB / 0.545 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.008866/1.207, allocations: 4.251 MB / 0.8137 GB, free: 3.594 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001788/1.209, allocations: 0.5395 MB / 0.8143 GB, free: 3.051 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01536/1.225, allocations: 6.454 MB / 0.8206 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.214e-05/1.225, allocations: 40 kB / 0.8206 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.112e-05/1.225, allocations: 8 kB / 0.8206 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.4e-05/1.225, allocations: 23.86 kB / 0.8206 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2433/1.468, allocations: 15.71 MB / 0.836 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/1.468, allocations: 7.969 kB / 0.836 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00321/1.471, allocations: 0.7483 MB / 0.8367 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002189/1.473, allocations: 0.7868 MB / 0.8375 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003393/1.474, allocations: 89.91 kB / 0.8376 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009797/1.484, allocations: 9.346 MB / 0.8467 GB, free: 173.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.484, allocations: 9.688 kB / 0.8467 GB, free: 173.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/1.498, allocations: 9.516 MB / 0.856 GB, free: 170 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002224/1.5, allocations: 1.091 MB / 0.8571 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007035/1.501, allocations: 80.58 kB / 0.8571 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002319/1.504, allocations: 220 kB / 0.8574 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006401/1.504, allocations: 267.5 kB / 0.8576 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002668/1.504, allocations: 117.4 kB / 0.8577 GB, free: 169.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005542/1.51, allocations: 3.363 MB / 0.861 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.81e-07/1.51, allocations: 0 / 0.861 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007476/1.517, allocations: 1.882 MB / 0.8628 GB, free: 168 MB / 0.5606 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.01442/1.532, allocations: 10.25 MB / 0.8729 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01013/1.542, allocations: 7.371 MB / 0.88 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/1.542, allocations: 0 / 0.88 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004484/1.546, allocations: 3.331 MB / 0.8833 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00593/1.552, allocations: 1.304 MB / 0.8846 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09751/1.65, allocations: 65.11 MB / 0.9482 GB, free: 95.97 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007734/1.658, allocations: 7.333 MB / 0.9553 GB, free: 88.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005194/1.663, allocations: 2.149 MB / 0.9574 GB, free: 86.45 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005619/1.668, allocations: 4.35 MB / 0.9617 GB, free: 82.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.223e-06/1.668, allocations: 0 / 0.9617 GB, free: 82.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4116/2.08, allocations: 149 MB / 1.107 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.64/26.72, allocations: 19.52 kB / 1.107 GB, free: 168.2 MB / 0.5762 GB " [Timeout remaining time 633] (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: 43.32411489705555]