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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 189.5 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 43.92 kB / 371.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2286, allocations: 52.19 MB / 423.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03973/0.2683, allocations: 33.8 MB / 457.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0216/0.2899, allocations: 10.11 MB / 467.3 MB, free: 2.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006682/0.2966, allocations: 370 kB / 467.7 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01985/0.3164, allocations: 8.008 MB / 475.7 MB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01242/0.3288, allocations: 3.503 MB / 479.2 MB, free: 6.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007233/0.3361, allocations: 2.301 MB / 481.5 MB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01786/0.3539, allocations: 12.96 MB / 494.5 MB, free: 7.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02964/0.3836, allocations: 17.35 MB / 0.4998 GB, free: 5.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0112/0.3948, allocations: 6.978 MB / 0.5066 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01287/0.4076, allocations: 7.817 MB / 0.5143 GB, free: 6.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005228/0.4129, allocations: 1.953 MB / 0.5162 GB, free: 4.727 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007517/0.4204, allocations: 2.343 MB / 0.5185 GB, free: 2.383 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006849/0.4272, allocations: 3.974 MB / 0.5223 GB, free: 14.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01203/0.4393, allocations: 5.903 MB / 0.5281 GB, free: 8.473 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3937/0.833, allocations: 26.05 MB / 0.5535 GB, free: 44.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.833, allocations: 0 / 0.5535 GB, free: 44.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.833, allocations: 0 / 0.5535 GB, free: 44.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006912/0.8337, allocations: 0 / 0.5535 GB, free: 44.41 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.04407/0.8778, allocations: 15.21 MB / 0.5684 GB, free: 37.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.8778, allocations: 10 kB / 0.5684 GB, free: 37.7 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.00027/0.8781, allocations: 327.5 kB / 0.5687 GB, free: 37.67 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006364/0.8844, allocations: 1.714 MB / 0.5704 GB, free: 37.24 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03187/0.9163, allocations: 6.211 MB / 0.5765 GB, free: 34.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01538/0.9317, allocations: 8.104 MB / 0.5844 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007603/0.9325, allocations: 0.9071 MB / 0.5853 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005182/0.9376, allocations: 1.191 MB / 0.5864 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04248/0.9801, allocations: 18.88 MB / 0.6049 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004074/0.9805, allocations: 19.91 kB / 0.6049 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003659/0.9842, allocations: 0.4912 MB / 0.6054 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005149/0.9847, allocations: 0.6421 MB / 0.606 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03341/1.018, allocations: 16.77 MB / 0.6224 GB, free: 9.695 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/1.12, allocations: 52.38 MB / 0.6735 GB, free: 5.129 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/1.139, allocations: 10.14 MB / 0.6834 GB, free: 12.6 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00636/1.145, allocations: 3.369 MB / 0.6867 GB, free: 9.223 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01841/1.164, allocations: 7.655 MB / 0.6942 GB, free: 1.688 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.621e-05/1.164, allocations: 85.23 kB / 0.6943 GB, free: 1.594 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 6.702e-06/1.164, allocations: 0 / 0.6943 GB, free: 1.594 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.04098/1.205, allocations: 17.22 MB / 0.7111 GB, free: 416 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/1.205, allocations: 90.47 kB / 0.7112 GB, free: 312 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01074/1.215, allocations: 5.022 MB / 0.7161 GB, free: 11.29 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008754/1.216, allocations: 85.7 kB / 0.7162 GB, free: 11.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005206/1.222, allocations: 5.638 MB / 0.7217 GB, free: 5.551 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002143/1.224, allocations: 1.429 MB / 0.7231 GB, free: 4.145 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004158/1.228, allocations: 1.323 MB / 0.7243 GB, free: 2.812 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.228, allocations: 301.1 kB / 0.7246 GB, free: 2.516 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005303/1.233, allocations: 2.91 MB / 0.7275 GB, free: 15.6 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007744/1.241, allocations: 5.919 MB / 0.7333 GB, free: 8.312 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/1.254, allocations: 9.44 MB / 0.7425 GB, free: 13.85 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.372e-05/1.254, allocations: 28 kB / 0.7425 GB, free: 13.82 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01738/1.272, allocations: 9.849 MB / 0.7521 GB, free: 4.531 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.76e-05/1.272, allocations: 48 kB / 0.7522 GB, free: 4.484 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/1.272, allocations: 100 kB / 0.7523 GB, free: 4.387 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002495/1.275, allocations: 0.9326 MB / 0.7532 GB, free: 3.441 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005607/1.28, allocations: 1.583 MB / 0.7547 GB, free: 1.973 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2093/1.49, allocations: 9.773 MB / 0.7643 GB, free: 208.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005158/1.495, allocations: 405.8 kB / 0.7646 GB, free: 208.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001078/1.496, allocations: 353 kB / 0.765 GB, free: 208.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.006849/1.503, allocations: 4.243 MB / 0.7691 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001265/1.504, allocations: 0.5423 MB / 0.7697 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009599/1.513, allocations: 6.456 MB / 0.776 GB, free: 204.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.125e-05/1.513, allocations: 40.47 kB / 0.776 GB, free: 204.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.513, allocations: 7.75 kB / 0.776 GB, free: 204.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.144e-05/1.514, allocations: 23.5 kB / 0.776 GB, free: 204.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02315/1.537, allocations: 14.96 MB / 0.7906 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/1.537, allocations: 3.938 kB / 0.7906 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00303/1.54, allocations: 0.7457 MB / 0.7914 GB, free: 198.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/1.542, allocations: 0.7854 MB / 0.7921 GB, free: 197.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003849/1.542, allocations: 90.83 kB / 0.7922 GB, free: 197.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007896/1.55, allocations: 8.92 MB / 0.8009 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.55, allocations: 4 kB / 0.8009 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01245/1.562, allocations: 9.507 MB / 0.8102 GB, free: 181 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0027/1.565, allocations: 1.021 MB / 0.8112 GB, free: 180.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00112/1.566, allocations: 72 kB / 0.8113 GB, free: 180.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002576/1.569, allocations: 222.2 kB / 0.8115 GB, free: 180.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006102/1.569, allocations: 280.2 kB / 0.8118 GB, free: 180 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002755/1.57, allocations: 118.2 kB / 0.8119 GB, free: 179.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005087/1.575, allocations: 3.349 MB / 0.8151 GB, free: 177.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.6e-07/1.575, allocations: 0 / 0.8151 GB, free: 177.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007165/1.582, allocations: 1.877 MB / 0.817 GB, free: 175.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.0127/1.595, allocations: 10.22 MB / 0.827 GB, free: 165.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009907/1.605, allocations: 7.209 MB / 0.834 GB, free: 158 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/1.605, allocations: 0 / 0.834 GB, free: 158 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004694/1.609, allocations: 3.182 MB / 0.8371 GB, free: 154.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007008/1.616, allocations: 1.283 MB / 0.8384 GB, free: 153.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09571/1.712, allocations: 65.28 MB / 0.9021 GB, free: 84.43 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007513/1.72, allocations: 6.922 MB / 0.9089 GB, free: 77.47 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005278/1.725, allocations: 2.156 MB / 0.911 GB, free: 75.31 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005326/1.73, allocations: 4.33 MB / 0.9152 GB, free: 70.98 MB / 0.5763 GB Notification: Performance of SimCode: time 9.42e-07/1.73, allocations: 4 kB / 0.9152 GB, free: 70.98 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4075/2.138, allocations: 154.6 MB / 1.066 GB, free: 159.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.12/24.26, allocations: 2.922 kB / 1.066 GB, free: 159.7 MB / 0.5763 GB " [Timeout remaining time 635] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 646] Reference file matches [Calling sys.exit(0), Time elapsed: 52.20293968205806]