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.001873/0.001873, allocations: 83.69 kB / 20.96 MB, free: 3.316 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.002109/0.002109, allocations: 157.3 kB / 24.27 MB, free: 8 kB / 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 1.573/1.573, allocations: 177.1 MB / 204.6 MB, free: 5.574 MB / 186.7 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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 272.4 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.506e-05/2.664e-05, allocations: 2.312 kB / 272.4 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.166/0.1661, allocations: 39.06 MB / 311.4 MB, free: 7.652 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02191/0.188, allocations: 10.6 MB / 322 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009319/0.1973, allocations: 370.4 kB / 322.4 MB, free: 15.72 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02443/0.2217, allocations: 9.085 MB / 331.5 MB, free: 7.328 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01408/0.2358, allocations: 3.587 MB / 335.1 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008037/0.2438, allocations: 2.394 MB / 337.5 MB, free: 1.324 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02557/0.2694, allocations: 13.51 MB / 351 MB, free: 3.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04224/0.3116, allocations: 17.19 MB / 368.2 MB, free: 2.418 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01967/0.3313, allocations: 10.42 MB / 378.6 MB, free: 7.984 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01425/0.3456, allocations: 7.411 MB / 386 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005043/0.3506, allocations: 1.949 MB / 387.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00674/0.3573, allocations: 2.354 MB / 390.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005657/0.363, allocations: 4.106 MB / 394.4 MB, free: 8.137 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01381/0.3768, allocations: 5.142 MB / 399.5 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0388/0.4156, allocations: 26.42 MB / 426 MB, free: 8.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.4156, allocations: 8 kB / 426 MB, free: 8.484 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4156, allocations: 3.938 kB / 426 MB, free: 8.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000765/0.4164, allocations: 0 / 426 MB, free: 8.48 MB / 378.7 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.2901/0.7065, allocations: 17.42 MB / 443.4 MB, free: 106.6 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.7066, allocations: 11.41 kB / 443.4 MB, free: 106.6 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04062/0.7472, allocations: 7.88 MB / 451.3 MB, free: 104.4 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01874/0.7659, allocations: 7.755 MB / 459 MB, free: 97.48 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007674/0.7667, allocations: 0.9026 MB / 459.9 MB, free: 96.58 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004168/0.7709, allocations: 1.198 MB / 461.1 MB, free: 95.39 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04534/0.8162, allocations: 19.18 MB / 480.3 MB, free: 76.09 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008477/0.817, allocations: 19.91 kB / 480.3 MB, free: 76.07 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00553/0.8226, allocations: 499.7 kB / 480.8 MB, free: 75.59 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008356/0.8234, allocations: 0.6382 MB / 481.5 MB, free: 74.95 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05246/0.8759, allocations: 14.75 MB / 496.2 MB, free: 60.18 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1867/1.063, allocations: 86.3 MB / 0.5689 GB, free: 2.461 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02151/1.084, allocations: 9.63 MB / 0.5783 GB, free: 10.41 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007607/1.092, allocations: 2.921 MB / 0.5811 GB, free: 7.48 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1726/1.264, allocations: 7.804 MB / 0.5887 GB, free: 126.4 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/1.264, allocations: 76.58 kB / 0.5888 GB, free: 126.4 MB / 426.8 MB Notification: Performance of pre-optimization done (n=349): time 6.101e-06/1.264, allocations: 0 / 0.5888 GB, free: 126.4 MB / 426.8 MB Notification: Performance of matching and sorting (n=389): time 0.03544/1.3, allocations: 14.91 MB / 0.6034 GB, free: 124.8 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/1.3, allocations: 92.44 kB / 0.6035 GB, free: 124.8 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/1.312, allocations: 6.732 MB / 0.61 GB, free: 124.2 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006692/1.312, allocations: 89.2 kB / 0.6101 GB, free: 124.2 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004208/1.317, allocations: 6.262 MB / 0.6162 GB, free: 121.4 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001772/1.318, allocations: 1.548 MB / 0.6178 GB, free: 120.6 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003207/1.322, allocations: 1.739 MB / 0.6195 GB, free: 120.4 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 5.681e-05/1.322, allocations: 480.7 kB / 0.6199 GB, free: 119.9 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004968/1.327, allocations: 2.309 MB / 0.6222 GB, free: 119.9 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005201/1.332, allocations: 7.047 MB / 0.629 GB, free: 113.2 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009161/1.341, allocations: 10.26 MB / 0.6391 GB, free: 104.9 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001033/1.341, allocations: 31.45 kB / 0.6391 GB, free: 104.9 MB / 426.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01341/1.355, allocations: 9.042 MB / 0.6479 GB, free: 100.3 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.539e-05/1.355, allocations: 52.06 kB / 0.648 GB, free: 100.3 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/1.355, allocations: 100 kB / 0.6481 GB, free: 100.2 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002896/1.358, allocations: 1.119 MB / 0.6492 GB, free: 99.04 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005274/1.363, allocations: 1.591 MB / 0.6507 GB, free: 97.45 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/1.373, allocations: 11.37 MB / 0.6618 GB, free: 85.73 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005417/1.378, allocations: 407.6 kB / 0.6622 GB, free: 85.34 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001107/1.379, allocations: 356 kB / 0.6625 GB, free: 84.99 MB / 426.8 MB 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.006444/1.386, allocations: 3.847 MB / 0.6663 GB, free: 81.12 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/1.388, allocations: 0.6256 MB / 0.6669 GB, free: 80.5 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009179/1.397, allocations: 5.398 MB / 0.6722 GB, free: 75.07 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/1.397, allocations: 40 kB / 0.6722 GB, free: 75.03 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.397, allocations: 8 kB / 0.6722 GB, free: 75.02 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.448e-05/1.397, allocations: 19.92 kB / 0.6722 GB, free: 75 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02724/1.424, allocations: 16.82 MB / 0.6887 GB, free: 58.15 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/1.424, allocations: 4 kB / 0.6887 GB, free: 58.14 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003092/1.427, allocations: 0.7489 MB / 0.6894 GB, free: 57.39 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002684/1.43, allocations: 0.9622 MB / 0.6903 GB, free: 56.41 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002597/1.43, allocations: 87.97 kB / 0.6904 GB, free: 56.32 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008581/1.439, allocations: 10.55 MB / 0.7007 GB, free: 45.42 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/1.439, allocations: 4 kB / 0.7007 GB, free: 45.42 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/1.45, allocations: 7.883 MB / 0.7084 GB, free: 37.4 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00257/1.452, allocations: 0.9103 MB / 0.7093 GB, free: 36.49 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006875/1.453, allocations: 72 kB / 0.7094 GB, free: 36.42 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/1.455, allocations: 219.8 kB / 0.7096 GB, free: 36.2 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005306/1.456, allocations: 278.5 kB / 0.7099 GB, free: 35.93 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002373/1.456, allocations: 124 kB / 0.71 GB, free: 35.81 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.004083/1.46, allocations: 3.435 MB / 0.7133 GB, free: 32.38 MB / 426.8 MB Notification: Performance of sort global known variables: time 9.1e-08/1.46, allocations: 0 / 0.7133 GB, free: 32.38 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006426/1.466, allocations: 1.879 MB / 0.7152 GB, free: 30.5 MB / 426.8 MB 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.0006491/1.467, allocations: 266.2 kB / 0.7154 GB, free: 30.23 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01007/1.477, allocations: 7.076 MB / 0.7223 GB, free: 23.09 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.477, allocations: 0 / 0.7223 GB, free: 23.09 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00422/1.481, allocations: 3.167 MB / 0.7254 GB, free: 19.85 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006066/1.487, allocations: 1.213 MB / 0.7266 GB, free: 18.71 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1808/1.668, allocations: 18.79 MB / 0.745 GB, free: 106.4 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00977/1.678, allocations: 6.344 MB / 0.7512 GB, free: 105.9 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.005482/1.683, allocations: 1.805 MB / 0.7529 GB, free: 105.8 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.684, allocations: 407.2 kB / 0.7533 GB, free: 105.8 MB / 426.8 MB Notification: Performance of SimCode: time 1.543e-06/1.684, allocations: 0 / 0.7533 GB, free: 105.8 MB / 426.8 MB Notification: Performance of Templates: time 0.11/1.795, allocations: 65.05 MB / 0.8168 GB, free: 64.67 MB / 426.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.676292957970873]