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.0009288/0.0009288, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009203/0.0009203, allocations: 151.4 kB / 24.81 MB, free: 9.324 MB / 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.9736/0.9736, allocations: 173.3 MB / 201.4 MB, free: 9.215 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 1.252e-06/1.252e-06, allocations: 0 / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.068e-05/1.193e-05, allocations: 2.312 kB / 268.5 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1675/0.1675, allocations: 36.97 MB / 305.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01941/0.1869, allocations: 10.31 MB / 315.7 MB, free: 7.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00728/0.1942, allocations: 366.5 kB / 316.1 MB, free: 6.895 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.2044, allocations: 8.829 MB / 324.9 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009517/0.2139, allocations: 3.561 MB / 328.5 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004791/0.2187, allocations: 2.338 MB / 330.8 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01262/0.2313, allocations: 13.41 MB / 344.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02229/0.2536, allocations: 17.19 MB / 361.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01298/0.2666, allocations: 10.65 MB / 372.1 MB, free: 2.051 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009135/0.2757, allocations: 7.431 MB / 379.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004333/0.2801, allocations: 1.938 MB / 381.4 MB, free: 8.668 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006114/0.2862, allocations: 2.323 MB / 383.8 MB, free: 6.344 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003943/0.2901, allocations: 4.075 MB / 387.8 MB, free: 2.258 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008213/0.2983, allocations: 5.115 MB / 393 MB, free: 13.13 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01547/0.3138, allocations: 12.54 MB / 405.5 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3138, allocations: 4 kB / 405.5 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3138, allocations: 0 / 405.5 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006222/0.3144, allocations: 0 / 405.5 MB, free: 0.5547 MB / 346.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.02681/0.3413, allocations: 15.44 MB / 420.9 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3413, allocations: 8.922 kB / 420.9 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01753/0.3588, allocations: 6.257 MB / 427.2 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.3692, allocations: 7.236 MB / 434.4 MB, free: 3.379 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005713/0.3698, allocations: 0.9031 MB / 435.3 MB, free: 2.473 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001754/0.3715, allocations: 1.191 MB / 436.5 MB, free: 1.281 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2364/0.608, allocations: 9.391 MB / 445.9 MB, free: 81.12 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003213/0.6083, allocations: 21.86 kB / 445.9 MB, free: 81.12 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001398/0.6097, allocations: 0.4913 MB / 446.4 MB, free: 81.12 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005901/0.6103, allocations: 0.6453 MB / 447.1 MB, free: 81.1 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01205/0.6223, allocations: 4.228 MB / 451.3 MB, free: 80.8 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05311/0.6754, allocations: 46.84 MB / 498.1 MB, free: 50.41 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006763/0.6822, allocations: 7.727 MB / 0.494 GB, free: 44.39 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.6837, allocations: 1.457 MB / 0.4954 GB, free: 42.97 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007153/0.6909, allocations: 5.298 MB / 0.5006 GB, free: 37.99 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.93e-05/0.6909, allocations: 76.14 kB / 0.5007 GB, free: 37.9 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 6.743e-06/0.6909, allocations: 0 / 0.5007 GB, free: 37.9 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01815/0.7091, allocations: 8.744 MB / 0.5092 GB, free: 29.74 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.7091, allocations: 98.47 kB / 0.5093 GB, free: 29.63 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004713/0.7138, allocations: 4.339 MB / 0.5136 GB, free: 26.07 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003164/0.7141, allocations: 85.7 kB / 0.5136 GB, free: 25.98 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002381/0.7165, allocations: 5.929 MB / 0.5194 GB, free: 20.47 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009437/0.7175, allocations: 1.454 MB / 0.5208 GB, free: 19.09 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/0.7191, allocations: 1.479 MB / 0.5223 GB, free: 17.73 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.392e-05/0.7191, allocations: 480.8 kB / 0.5228 GB, free: 17.26 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.7202, allocations: 0.7313 MB / 0.5235 GB, free: 16.53 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002481/0.7227, allocations: 5.235 MB / 0.5286 GB, free: 9.574 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004883/0.7276, allocations: 6.707 MB / 0.5351 GB, free: 1.496 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.168e-05/0.7276, allocations: 28 kB / 0.5352 GB, free: 1.469 MB / 378.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008983/0.7366, allocations: 5.585 MB / 0.5406 GB, free: 12.49 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.604e-05/0.7367, allocations: 53.7 kB / 0.5407 GB, free: 12.44 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000119/0.7368, allocations: 100 kB / 0.5408 GB, free: 12.34 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/0.7389, allocations: 0.8519 MB / 0.5416 GB, free: 11.48 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003938/0.7429, allocations: 1.461 MB / 0.543 GB, free: 10.13 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008134/0.751, allocations: 8.2 MB / 0.551 GB, free: 1.738 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00359/0.7546, allocations: 287.9 kB / 0.5513 GB, free: 1.457 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000845/0.7555, allocations: 296 kB / 0.5516 GB, free: 1.168 MB / 394.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.002647/0.7581, allocations: 0.6215 MB / 0.5522 GB, free: 0.6523 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/0.7592, allocations: 0.6179 MB / 0.5528 GB, free: 32 kB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004552/0.7637, allocations: 3.282 MB / 0.556 GB, free: 12.74 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-05/0.7638, allocations: 40 kB / 0.556 GB, free: 12.7 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/0.7638, allocations: 13.03 kB / 0.556 GB, free: 12.69 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-05/0.7638, allocations: 19.92 kB / 0.5561 GB, free: 12.67 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/0.7775, allocations: 8.639 MB / 0.5645 GB, free: 4.715 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.7775, allocations: 5.75 kB / 0.5645 GB, free: 4.711 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/0.7791, allocations: 0.6351 MB / 0.5651 GB, free: 4.109 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.7806, allocations: 0.6997 MB / 0.5658 GB, free: 3.398 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000213/0.7808, allocations: 87.97 kB / 0.5659 GB, free: 3.312 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005774/0.7866, allocations: 7.757 MB / 0.5735 GB, free: 11.34 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.7866, allocations: 4 kB / 0.5735 GB, free: 11.33 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/0.7922, allocations: 4.014 MB / 0.5774 GB, free: 7.293 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/0.7937, allocations: 0.8322 MB / 0.5782 GB, free: 6.457 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003768/0.794, allocations: 71.98 kB / 0.5783 GB, free: 6.387 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.7951, allocations: 112 kB / 0.5784 GB, free: 6.277 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003615/0.7955, allocations: 274.4 kB / 0.5786 GB, free: 6.012 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/0.7957, allocations: 87.97 kB / 0.5787 GB, free: 5.926 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002186/0.7978, allocations: 1.886 MB / 0.5806 GB, free: 4.23 MB / 426.8 MB Notification: Performance of sort global known variables: time 8e-08/0.7978, allocations: 0 / 0.5806 GB, free: 4.23 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004651/0.8025, allocations: 1.859 MB / 0.5824 GB, free: 2.371 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.000453/0.8029, allocations: 261.3 kB / 0.5826 GB, free: 2.141 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.1262/0.9291, allocations: 4.243 MB / 0.5868 GB, free: 117.5 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.9292, allocations: 4.281 kB / 0.5868 GB, free: 117.5 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002829/0.932, allocations: 2.125 MB / 0.5889 GB, free: 116.8 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004566/0.9365, allocations: 1.18 MB / 0.59 GB, free: 116.8 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02303/0.9596, allocations: 17.01 MB / 0.6066 GB, free: 110.3 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003017/0.9626, allocations: 3.077 MB / 0.6096 GB, free: 110 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002731/0.9653, allocations: 0.8017 MB / 0.6104 GB, free: 109.8 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002025/0.9673, allocations: 1.236 MB / 0.6116 GB, free: 109.7 MB / 426.8 MB Notification: Performance of SimCode: time 2.244e-06/0.9674, allocations: 0 / 0.6116 GB, free: 109.7 MB / 426.8 MB Notification: Performance of Templates: time 0.09401/1.061, allocations: 69.36 MB / 0.6793 GB, free: 51.95 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.16176566015929]