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.0009695/0.0009695, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0009007/0.0009007, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9291/0.9291, allocations: 173.4 MB / 201.1 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 179] 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: 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.[0-9,]+.",fileNamePrefix="Modelica_4.0.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.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.435e-06/2.435e-06, allocations: 0 / 268 MB, free: 6.371 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.11e-05/3.353e-05, allocations: 2.312 kB / 268 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1839/0.1839, allocations: 38.74 MB / 306.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02031/0.2042, allocations: 10.36 MB / 317.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007237/0.2115, allocations: 368.2 kB / 317.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01129/0.2227, allocations: 9.102 MB / 326.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.2336, allocations: 3.585 MB / 330.2 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004991/0.2386, allocations: 2.36 MB / 332.6 MB, free: 9.828 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01409/0.2527, allocations: 13.41 MB / 346 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02433/0.277, allocations: 17.19 MB / 363.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01559/0.2926, allocations: 10.4 MB / 373.6 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01066/0.3032, allocations: 7.415 MB / 381 MB, free: 9.172 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004433/0.3077, allocations: 1.949 MB / 382.9 MB, free: 7.223 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006067/0.3137, allocations: 2.343 MB / 385.3 MB, free: 4.879 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003299/0.317, allocations: 4.107 MB / 389.4 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008966/0.326, allocations: 5.138 MB / 394.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01692/0.3429, allocations: 12.6 MB / 407.1 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.3429, allocations: 0 / 407.1 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3429, allocations: 0 / 407.1 MB, free: 14.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000498/0.3434, allocations: 0 / 407.1 MB, free: 14.97 MB / 362.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.02798/0.3714, allocations: 16.08 MB / 423.2 MB, free: 14.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.7e-05/0.3715, allocations: 8.922 kB / 423.2 MB, free: 14.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02091/0.3924, allocations: 7.965 MB / 431.2 MB, free: 6.777 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2921/0.6845, allocations: 7.673 MB / 438.8 MB, free: 79.3 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007963/0.6853, allocations: 0.9039 MB / 439.7 MB, free: 79.28 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003203/0.6885, allocations: 1.195 MB / 440.9 MB, free: 79.28 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01918/0.7077, allocations: 10.25 MB / 451.2 MB, free: 78.34 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001905/0.7079, allocations: 29.58 kB / 451.2 MB, free: 78.34 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000782/0.7087, allocations: 0.4914 MB / 451.7 MB, free: 78.34 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004159/0.7091, allocations: 0.6393 MB / 452.4 MB, free: 78.31 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01085/0.7199, allocations: 5.401 MB / 457.8 MB, free: 78.14 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0556/0.7755, allocations: 47.5 MB / 0.4934 GB, free: 41.46 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008113/0.7836, allocations: 8.778 MB / 0.502 GB, free: 34.29 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.7856, allocations: 1.679 MB / 0.5036 GB, free: 32.61 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007182/0.7928, allocations: 5.623 MB / 0.5091 GB, free: 27.21 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.7928, allocations: 76.12 kB / 0.5092 GB, free: 27.12 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.769e-06/0.7928, allocations: 0 / 0.5092 GB, free: 27.12 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01798/0.8108, allocations: 10.79 MB / 0.5197 GB, free: 16.86 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.8109, allocations: 100.1 kB / 0.5198 GB, free: 16.75 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00506/0.8159, allocations: 4.42 MB / 0.5241 GB, free: 12.44 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000178/0.8161, allocations: 89.7 kB / 0.5242 GB, free: 12.34 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002354/0.8185, allocations: 5.903 MB / 0.53 GB, free: 6.672 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007605/0.8192, allocations: 1.439 MB / 0.5314 GB, free: 5.25 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001637/0.8208, allocations: 1.456 MB / 0.5328 GB, free: 3.781 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.848e-05/0.8209, allocations: 480.7 kB / 0.5333 GB, free: 3.309 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/0.8228, allocations: 0.9579 MB / 0.5342 GB, free: 2.348 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004159/0.8269, allocations: 5.432 MB / 0.5395 GB, free: 11.03 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007959/0.8349, allocations: 7.06 MB / 0.5464 GB, free: 2.43 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.956e-05/0.8349, allocations: 28 kB / 0.5464 GB, free: 2.402 MB / 394.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0108/0.8458, allocations: 6.126 MB / 0.5524 GB, free: 12.88 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.122e-05/0.8458, allocations: 56.05 kB / 0.5525 GB, free: 12.82 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.8459, allocations: 100 kB / 0.5526 GB, free: 12.72 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002653/0.8486, allocations: 0.8797 MB / 0.5534 GB, free: 11.82 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004175/0.8528, allocations: 1.584 MB / 0.555 GB, free: 10.36 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00908/0.8618, allocations: 8.469 MB / 0.5632 GB, free: 1.59 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004259/0.8661, allocations: 411.6 kB / 0.5636 GB, free: 1.188 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006025/0.8667, allocations: 348 kB / 0.564 GB, free: 0.8477 MB / 410.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.003501/0.8702, allocations: 0.6254 MB / 0.5646 GB, free: 332 kB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009166/0.8711, allocations: 0.6218 MB / 0.5652 GB, free: 15.7 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/0.8765, allocations: 3.68 MB / 0.5688 GB, free: 12 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/0.8765, allocations: 40 kB / 0.5688 GB, free: 11.96 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.8765, allocations: 12.77 kB / 0.5688 GB, free: 11.95 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.2e-05/0.8765, allocations: 19.92 kB / 0.5688 GB, free: 11.93 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01725/0.8938, allocations: 11.44 MB / 0.58 GB, free: 0.5039 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.8938, allocations: 4 kB / 0.58 GB, free: 0.5 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1546/1.048, allocations: 0.7438 MB / 0.5808 GB, free: 98.52 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/1.05, allocations: 0.7346 MB / 0.5815 GB, free: 98.45 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005678/1.051, allocations: 85.39 kB / 0.5816 GB, free: 98.45 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005731/1.057, allocations: 7.991 MB / 0.5894 GB, free: 93.06 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.057, allocations: 11.78 kB / 0.5894 GB, free: 93.06 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008025/1.065, allocations: 4.554 MB / 0.5938 GB, free: 92.42 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/1.066, allocations: 0.9094 MB / 0.5947 GB, free: 92.42 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000472/1.067, allocations: 75.89 kB / 0.5948 GB, free: 92.42 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/1.068, allocations: 226.1 kB / 0.595 GB, free: 92.41 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004195/1.069, allocations: 278 kB / 0.5953 GB, free: 92.41 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/1.069, allocations: 111.3 kB / 0.5954 GB, free: 92.41 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002833/1.072, allocations: 2.065 MB / 0.5974 GB, free: 92.19 MB / 426.8 MB Notification: Performance of sort global known variables: time 8.11e-07/1.072, allocations: 3.969 kB / 0.5974 GB, free: 92.19 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.005237/1.077, allocations: 1.869 MB / 0.5992 GB, free: 92.19 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.0005548/1.077, allocations: 263.4 kB / 0.5995 GB, free: 92.1 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.006142/1.083, allocations: 4.651 MB / 0.604 GB, free: 91.38 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1.083, allocations: 0 / 0.604 GB, free: 91.38 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002384/1.086, allocations: 2.292 MB / 0.6062 GB, free: 90.74 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003255/1.089, allocations: 1.196 MB / 0.6074 GB, free: 90.64 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02334/1.112, allocations: 17.17 MB / 0.6242 GB, free: 84.11 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002554/1.115, allocations: 3.072 MB / 0.6272 GB, free: 83.77 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003794/1.119, allocations: 1.802 MB / 0.6289 GB, free: 83.53 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009014/1.12, allocations: 389.8 kB / 0.6293 GB, free: 83.52 MB / 426.8 MB Notification: Performance of SimCode: time 2.805e-06/1.12, allocations: 0 / 0.6293 GB, free: 83.52 MB / 426.8 MB Notification: Performance of Templates: time 0.0779/1.198, allocations: 64.39 MB / 0.6922 GB, free: 24.84 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.457333776168525]