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.001995/0.001995, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.002407/0.002407, allocations: 149.1 kB / 24.26 MB, free: 156 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 1.458/1.458, allocations: 173.4 MB / 200.8 MB, free: 9.301 MB / 186.7 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: 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.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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 267.4 MB, free: 6.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.002e-05/3.173e-05, allocations: 2.312 kB / 267.4 MB, free: 6.656 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1621/0.1621, allocations: 33.87 MB / 301.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01925/0.1814, allocations: 10.19 MB / 311.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00768/0.1891, allocations: 371.2 kB / 311.8 MB, free: 8.965 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01722/0.2063, allocations: 8.425 MB / 320.2 MB, free: 3.262 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01131/0.2176, allocations: 3.56 MB / 323.8 MB, free: 384 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007541/0.2251, allocations: 2.315 MB / 326.1 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02126/0.2464, allocations: 13.39 MB / 339.5 MB, free: 1.684 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03466/0.2811, allocations: 17.18 MB / 356.7 MB, free: 352 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02038/0.3014, allocations: 10.32 MB / 367 MB, free: 6.012 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01355/0.315, allocations: 6.662 MB / 373.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004665/0.3197, allocations: 1.949 MB / 375.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006926/0.3266, allocations: 2.339 MB / 377.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005192/0.3318, allocations: 4.04 MB / 382 MB, free: 6.996 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01033/0.3421, allocations: 5.072 MB / 387.1 MB, free: 1.914 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03815/0.3803, allocations: 26.23 MB / 413.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.3803, allocations: 0 / 413.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3803, allocations: 0 / 413.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007542/0.381, allocations: 4 kB / 413.3 MB, free: 7.609 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.04608/0.4271, allocations: 15.07 MB / 428.4 MB, free: 8.418 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001595/0.4273, allocations: 12.92 kB / 428.4 MB, free: 8.406 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04005/0.4673, allocations: 7.953 MB / 436.3 MB, free: 448 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2183/0.6856, allocations: 8.432 MB / 444.8 MB, free: 109.3 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008776/0.6865, allocations: 0.9023 MB / 445.7 MB, free: 108.9 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003974/0.6905, allocations: 1.2 MB / 446.9 MB, free: 108.5 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03678/0.7273, allocations: 18.88 MB / 465.7 MB, free: 97.98 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003876/0.7277, allocations: 29.7 kB / 465.8 MB, free: 97.95 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002617/0.7303, allocations: 0.4919 MB / 466.3 MB, free: 97.46 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004379/0.7307, allocations: 0.6343 MB / 466.9 MB, free: 96.83 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0285/0.7592, allocations: 16.7 MB / 483.6 MB, free: 80.11 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08031/0.8395, allocations: 51.94 MB / 0.523 GB, free: 27.8 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01623/0.8558, allocations: 10.21 MB / 0.533 GB, free: 19.16 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005628/0.8614, allocations: 3.378 MB / 0.5363 GB, free: 15.77 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0156/0.877, allocations: 7.639 MB / 0.5437 GB, free: 8.324 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.877, allocations: 77.19 kB / 0.5438 GB, free: 8.238 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 6.262e-06/0.877, allocations: 0 / 0.5438 GB, free: 8.238 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.03849/0.9155, allocations: 17.32 MB / 0.5607 GB, free: 7.008 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.839e-05/0.9156, allocations: 98.39 kB / 0.5608 GB, free: 6.898 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00923/0.9249, allocations: 4.766 MB / 0.5655 GB, free: 2.125 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006859/0.9255, allocations: 93.7 kB / 0.5656 GB, free: 2.027 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005524/0.9311, allocations: 5.618 MB / 0.571 GB, free: 12.39 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001995/0.9331, allocations: 1.401 MB / 0.5724 GB, free: 11.01 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002466/0.9355, allocations: 1.307 MB / 0.5737 GB, free: 9.691 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.9357, allocations: 305.1 kB / 0.574 GB, free: 9.391 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005378/0.9411, allocations: 2.902 MB / 0.5768 GB, free: 6.484 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1378/1.079, allocations: 5.919 MB / 0.5826 GB, free: 121.3 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/1.09, allocations: 9.443 MB / 0.5918 GB, free: 116.1 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001214/1.091, allocations: 29.22 kB / 0.5918 GB, free: 116.1 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01692/1.107, allocations: 10.15 MB / 0.6017 GB, free: 112.2 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.51e-05/1.108, allocations: 49.78 kB / 0.6018 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/1.108, allocations: 97.31 kB / 0.6019 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003074/1.111, allocations: 1.109 MB / 0.603 GB, free: 111.9 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005374/1.116, allocations: 1.588 MB / 0.6045 GB, free: 111.7 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.126, allocations: 9.732 MB / 0.614 GB, free: 105.4 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004833/1.131, allocations: 407.8 kB / 0.6144 GB, free: 105.2 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006011/1.132, allocations: 354.1 kB / 0.6148 GB, free: 105.2 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.005424/1.137, allocations: 4.247 MB / 0.6189 GB, free: 103.2 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.138, allocations: 0.624 MB / 0.6195 GB, free: 103.1 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009427/1.148, allocations: 6.436 MB / 0.6258 GB, free: 100.5 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.192e-05/1.148, allocations: 40 kB / 0.6258 GB, free: 100.5 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/1.148, allocations: 9.938 kB / 0.6258 GB, free: 100.5 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.187e-05/1.148, allocations: 23.34 kB / 0.6259 GB, free: 100.5 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01984/1.168, allocations: 13.26 MB / 0.6388 GB, free: 89.44 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/1.168, allocations: 4 kB / 0.6388 GB, free: 89.44 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003071/1.171, allocations: 0.743 MB / 0.6395 GB, free: 88.83 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002732/1.173, allocations: 0.95 MB / 0.6405 GB, free: 88.09 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002571/1.174, allocations: 85.89 kB / 0.6406 GB, free: 88.01 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008488/1.182, allocations: 8.893 MB / 0.6492 GB, free: 79.35 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/1.182, allocations: 7.359 kB / 0.6492 GB, free: 79.34 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01273/1.195, allocations: 9.588 MB / 0.6586 GB, free: 69.93 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002689/1.198, allocations: 0.9748 MB / 0.6596 GB, free: 69.2 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/1.199, allocations: 79.94 kB / 0.6596 GB, free: 69.12 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002535/1.201, allocations: 219.8 kB / 0.6598 GB, free: 68.91 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005686/1.202, allocations: 282.6 kB / 0.6601 GB, free: 68.63 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/1.202, allocations: 104 kB / 0.6602 GB, free: 68.53 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.004232/1.206, allocations: 3.052 MB / 0.6632 GB, free: 65.48 MB / 410.8 MB Notification: Performance of sort global known variables: time 6e-08/1.206, allocations: 0 / 0.6632 GB, free: 65.48 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.006963/1.213, allocations: 1.871 MB / 0.665 GB, free: 63.61 MB / 410.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.0007406/1.214, allocations: 272.3 kB / 0.6653 GB, free: 63.35 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.009937/1.224, allocations: 7.207 MB / 0.6723 GB, free: 56.11 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/1.224, allocations: 0 / 0.6723 GB, free: 56.11 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004354/1.228, allocations: 3.174 MB / 0.6754 GB, free: 52.89 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005586/1.234, allocations: 1.181 MB / 0.6766 GB, free: 51.75 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03068/1.265, allocations: 20.28 MB / 0.6964 GB, free: 31.34 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009767/1.274, allocations: 6.917 MB / 0.7031 GB, free: 24.38 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.005906/1.28, allocations: 2.107 MB / 0.7052 GB, free: 22.26 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.281, allocations: 388.4 kB / 0.7056 GB, free: 21.88 MB / 410.8 MB Notification: Performance of SimCode: time 1.553e-06/1.281, allocations: 4 kB / 0.7056 GB, free: 21.88 MB / 410.8 MB Notification: Performance of Templates: time 0.2388/1.52, allocations: 64.45 MB / 0.7685 GB, free: 118.8 MB / 426.8 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.39221581199672]