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.0008097/0.0008097, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008628/0.0008628, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8661/0.8661, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 1.213e-06/1.213e-06, allocations: 0 / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031e-05/1.152e-05, allocations: 2.281 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02572/0.02573, allocations: 34.43 MB / 359.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01962/0.04534, allocations: 10.37 MB / 369.4 MB, free: 2.887 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006096/0.05144, allocations: 373.9 kB / 369.8 MB, free: 2.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.06164, allocations: 8.446 MB / 378.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006966/0.06861, allocations: 3.564 MB / 381.8 MB, free: 6.469 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003545/0.07216, allocations: 2.349 MB / 384.2 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.0838, allocations: 13.5 MB / 397.7 MB, free: 6.57 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01831/0.1021, allocations: 17.18 MB / 414.8 MB, free: 5.238 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009784/0.1119, allocations: 10.32 MB / 425.2 MB, free: 10.9 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005759/0.1177, allocations: 6.701 MB / 431.9 MB, free: 4.184 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001582/0.1192, allocations: 1.949 MB / 433.8 MB, free: 2.234 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002645/0.1219, allocations: 2.362 MB / 436.2 MB, free: 15.87 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002059/0.1239, allocations: 4.036 MB / 440.2 MB, free: 11.82 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004223/0.1282, allocations: 5.084 MB / 445.3 MB, free: 6.73 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3136/0.4417, allocations: 26.25 MB / 471.5 MB, free: 48.28 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.4417, allocations: 0 / 471.5 MB, free: 48.28 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4417, allocations: 0 / 471.5 MB, free: 48.28 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.001061/0.4428, allocations: 0 / 471.5 MB, free: 48.28 MB / 410.8 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.03343/0.4762, allocations: 15.11 MB / 486.7 MB, free: 41.55 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.4763, allocations: 9.781 kB / 486.7 MB, free: 41.55 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004967/0.4812, allocations: 1.711 MB / 488.4 MB, free: 41.12 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01748/0.4987, allocations: 6.135 MB / 494.5 MB, free: 38.69 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/0.5114, allocations: 8.097 MB / 0.4908 GB, free: 34.13 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000542/0.5119, allocations: 0.9068 MB / 0.4917 GB, free: 33.72 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003945/0.5158, allocations: 1.197 MB / 0.4929 GB, free: 33.32 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03449/0.5503, allocations: 18.92 MB / 0.5114 GB, free: 15.58 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003466/0.5507, allocations: 23.89 kB / 0.5114 GB, free: 15.55 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00226/0.5529, allocations: 499.5 kB / 0.5119 GB, free: 15.08 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003506/0.5533, allocations: 0.6421 MB / 0.5125 GB, free: 14.43 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02546/0.5788, allocations: 16.74 MB / 0.5288 GB, free: 13.68 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07626/0.655, allocations: 52.5 MB / 0.5801 GB, free: 9.02 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/0.6664, allocations: 10.28 MB / 0.5901 GB, free: 372 kB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003759/0.6702, allocations: 3.404 MB / 0.5935 GB, free: 12.95 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01173/0.6819, allocations: 7.718 MB / 0.601 GB, free: 5.332 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.682, allocations: 73.31 kB / 0.6011 GB, free: 5.25 MB / 490.8 MB Notification: Performance of pre-optimization done (n=349): time 5.931e-06/0.682, allocations: 0 / 0.6011 GB, free: 5.25 MB / 490.8 MB Notification: Performance of matching and sorting (n=389): time 0.02603/0.708, allocations: 17.28 MB / 0.6179 GB, free: 3.992 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.7081, allocations: 94.41 kB / 0.618 GB, free: 3.887 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1827/0.8908, allocations: 5.208 MB / 0.6231 GB, free: 173.8 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0008378/0.8917, allocations: 89.27 kB / 0.6232 GB, free: 173.7 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002791/0.8944, allocations: 5.615 MB / 0.6287 GB, free: 171.6 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001334/0.8958, allocations: 1.406 MB / 0.6301 GB, free: 170.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001567/0.8973, allocations: 1.319 MB / 0.6313 GB, free: 170.6 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 4.268e-05/0.8974, allocations: 301.1 kB / 0.6316 GB, free: 170.3 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002907/0.9003, allocations: 2.911 MB / 0.6345 GB, free: 170 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003521/0.9038, allocations: 5.933 MB / 0.6403 GB, free: 165 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007261/0.9111, allocations: 9.458 MB / 0.6495 GB, free: 158.2 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.39e-05/0.9111, allocations: 30.66 kB / 0.6495 GB, free: 158.2 MB / 0.4949 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01251/0.9237, allocations: 9.87 MB / 0.6592 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 6.754e-05/0.9237, allocations: 47.72 kB / 0.6592 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001607/0.9239, allocations: 99.72 kB / 0.6593 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/0.9255, allocations: 0.9435 MB / 0.6602 GB, free: 153.6 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003871/0.9294, allocations: 1.584 MB / 0.6618 GB, free: 152.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007427/0.9368, allocations: 9.757 MB / 0.6713 GB, free: 143.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005506/0.9423, allocations: 403.7 kB / 0.6717 GB, free: 142.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001486/0.9438, allocations: 367.3 kB / 0.672 GB, free: 142.4 MB / 0.4949 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.007443/0.9513, allocations: 4.243 MB / 0.6762 GB, free: 138.7 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/0.9526, allocations: 0.5354 MB / 0.6767 GB, free: 138.2 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007205/0.9598, allocations: 6.464 MB / 0.683 GB, free: 132.8 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/0.9598, allocations: 44 kB / 0.6831 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.649e-06/0.9598, allocations: 8 kB / 0.6831 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.283e-05/0.9598, allocations: 27.06 kB / 0.6831 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02229/0.9821, allocations: 15 MB / 0.6977 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/0.9821, allocations: 0 / 0.6977 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/0.9839, allocations: 0.7532 MB / 0.6985 GB, free: 118.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.9854, allocations: 0.7884 MB / 0.6993 GB, free: 117.6 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002395/0.9856, allocations: 87.97 kB / 0.6993 GB, free: 117.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006244/0.9919, allocations: 8.913 MB / 0.708 GB, free: 108.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.9919, allocations: 4.031 kB / 0.708 GB, free: 108.2 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/1.003, allocations: 9.522 MB / 0.7173 GB, free: 98.6 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002792/1.005, allocations: 1.027 MB / 0.7183 GB, free: 97.57 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009062/1.006, allocations: 78.77 kB / 0.7184 GB, free: 97.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/1.008, allocations: 211.8 kB / 0.7186 GB, free: 97.29 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004689/1.008, allocations: 286.5 kB / 0.7189 GB, free: 97.01 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001879/1.008, allocations: 120 kB / 0.719 GB, free: 96.89 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004467/1.013, allocations: 3.359 MB / 0.7223 GB, free: 93.55 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.9e-07/1.013, allocations: 0 / 0.7223 GB, free: 93.55 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.00605/1.019, allocations: 1.887 MB / 0.7241 GB, free: 91.66 MB / 0.4949 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.008909/1.028, allocations: 10.23 MB / 0.7341 GB, free: 81.32 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.008426/1.036, allocations: 7.231 MB / 0.7412 GB, free: 74.06 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/1.036, allocations: 4 kB / 0.7412 GB, free: 74.05 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003998/1.04, allocations: 3.165 MB / 0.7443 GB, free: 70.84 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005562/1.046, allocations: 1.307 MB / 0.7456 GB, free: 69.58 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09551/1.141, allocations: 65.21 MB / 0.8092 GB, free: 0.5195 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1767/1.318, allocations: 6.932 MB / 0.816 GB, free: 182.9 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.004775/1.323, allocations: 2.149 MB / 0.8181 GB, free: 182.8 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00624/1.329, allocations: 4.356 MB / 0.8224 GB, free: 180.8 MB / 0.4949 GB Notification: Performance of SimCode: time 2.033e-06/1.329, allocations: 0 / 0.8224 GB, free: 180.8 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1598/1.489, allocations: 152.3 MB / 0.9711 GB, free: 40.23 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/14.32, allocations: 19.58 kB / 0.9711 GB, free: 40.21 MB / 0.4949 GB " [Timeout remaining time 646] (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/jenkins/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/jenkins/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 654] Reference file matches [Calling sys.exit(0), Time elapsed: 24.909144626930356]