Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001586/0.001586, allocations: 85.95 kB / 23 MB, free: 1.504 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.001139/0.001139, allocations: 176.1 kB / 26.39 MB, free: 8.008 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8648/0.8648, allocations: 158.6 MB / 188.3 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 252.3 MB, free: 7.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.322e-05, allocations: 10.19 kB / 252.3 MB, free: 7.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03181/0.03183, allocations: 37.51 MB / 289.8 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02385/0.05568, allocations: 10.46 MB / 300.3 MB, free: 7.023 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008195/0.06388, allocations: 322.1 kB / 300.6 MB, free: 6.707 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0134/0.07728, allocations: 8.868 MB / 309.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01126/0.08854, allocations: 3.79 MB / 313.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005808/0.09435, allocations: 2.393 MB / 315.6 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01522/0.1096, allocations: 13.96 MB / 329.6 MB, free: 9.574 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02544/0.135, allocations: 17.3 MB / 346.9 MB, free: 8.113 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1479/0.2829, allocations: 10.97 MB / 357.9 MB, free: 34.29 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01344/0.2963, allocations: 7.779 MB / 365.7 MB, free: 34.29 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005809/0.3021, allocations: 1.977 MB / 367.6 MB, free: 34.29 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008084/0.3102, allocations: 2.367 MB / 370 MB, free: 34.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007127/0.3173, allocations: 4.282 MB / 374.3 MB, free: 34.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0119/0.3292, allocations: 5.302 MB / 379.6 MB, free: 34.29 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01883/0.3481, allocations: 12.98 MB / 392.6 MB, free: 31.71 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.3481, allocations: 0.8125 kB / 392.6 MB, free: 31.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3481, allocations: 0 / 392.6 MB, free: 31.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0009349/0.349, allocations: 3.344 kB / 392.6 MB, free: 31.71 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.02917/0.3782, allocations: 16.07 MB / 408.6 MB, free: 21.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3782, allocations: 11.98 kB / 408.6 MB, free: 21.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02528/0.4035, allocations: 8.457 MB / 417.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/0.4138, allocations: 6.472 MB / 423.6 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005361/0.4143, allocations: 0.9449 MB / 424.5 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/0.4172, allocations: 1.249 MB / 425.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02284/0.44, allocations: 10.05 MB / 435.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003365/0.4404, allocations: 19.34 kB / 435.8 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002172/0.4425, allocations: 0.5074 MB / 436.3 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000523/0.4431, allocations: 0.7371 MB / 437.1 MB, free: 9.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01604/0.4591, allocations: 4.896 MB / 442 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07579/0.5349, allocations: 48.93 MB / 490.9 MB, free: 5.305 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01225/0.5471, allocations: 12.13 MB / 0.4912 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/0.5501, allocations: 1.607 MB / 0.4928 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.5625, allocations: 6.656 MB / 0.4993 GB, free: 4.648 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.648e-05/0.5626, allocations: 75.98 kB / 0.4994 GB, free: 4.566 MB / 410.7 MB Notification: Performance of pre-optimization done (n=349): time 5.941e-06/0.5626, allocations: 0 / 0.4994 GB, free: 4.566 MB / 410.7 MB Notification: Performance of matching and sorting (n=389): time 0.1479/0.7105, allocations: 9.272 MB / 0.5084 GB, free: 98.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.7105, allocations: 90.38 kB / 0.5085 GB, free: 97.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005646/0.7161, allocations: 4.791 MB / 0.5132 GB, free: 97.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002768/0.7164, allocations: 89.02 kB / 0.5133 GB, free: 97.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002749/0.7192, allocations: 6.405 MB / 0.5195 GB, free: 93.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009696/0.7201, allocations: 1.473 MB / 0.521 GB, free: 92.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001861/0.722, allocations: 1.685 MB / 0.5226 GB, free: 92.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.57e-05/0.722, allocations: 480.7 kB / 0.5231 GB, free: 92.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.7233, allocations: 0.7957 MB / 0.5238 GB, free: 92.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002896/0.7262, allocations: 6.344 MB / 0.53 GB, free: 85.44 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005445/0.7317, allocations: 8.016 MB / 0.5379 GB, free: 78.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.49e-05/0.7318, allocations: 37.5 kB / 0.5379 GB, free: 78.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.00922/0.741, allocations: 6.343 MB / 0.5441 GB, free: 77.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.983e-05/0.741, allocations: 56.38 kB / 0.5442 GB, free: 77.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001638/0.7412, allocations: 126.7 kB / 0.5443 GB, free: 77.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.7433, allocations: 0.8809 MB / 0.5451 GB, free: 77.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004389/0.7477, allocations: 1.697 MB / 0.5468 GB, free: 77.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006417/0.7541, allocations: 8.235 MB / 0.5548 GB, free: 72.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004577/0.7587, allocations: 325.4 kB / 0.5551 GB, free: 72.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000601/0.7593, allocations: 351.5 kB / 0.5555 GB, free: 72.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003181/0.7625, allocations: 0.7055 MB / 0.5562 GB, free: 72.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/0.7635, allocations: 0.664 MB / 0.5568 GB, free: 71.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005506/0.769, allocations: 3.298 MB / 0.56 GB, free: 71.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.333e-05/0.7691, allocations: 40.16 kB / 0.5601 GB, free: 71.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.7691, allocations: 13.03 kB / 0.5601 GB, free: 71.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.978e-05/0.7691, allocations: 23.36 kB / 0.5601 GB, free: 71.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/0.7845, allocations: 8.792 MB / 0.5687 GB, free: 70.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.7845, allocations: 3.875 kB / 0.5687 GB, free: 70.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/0.7861, allocations: 0.6503 MB / 0.5693 GB, free: 70.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/0.7876, allocations: 0.7099 MB / 0.57 GB, free: 70.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002182/0.7878, allocations: 82.97 kB / 0.5701 GB, free: 70.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004244/0.7921, allocations: 7.747 MB / 0.5777 GB, free: 64.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.7921, allocations: 4.625 kB / 0.5777 GB, free: 64.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00531/0.7974, allocations: 4.039 MB / 0.5816 GB, free: 60.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001614/0.799, allocations: 0.8512 MB / 0.5825 GB, free: 60.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005639/0.7996, allocations: 73.73 kB / 0.5825 GB, free: 60.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.8007, allocations: 113.1 kB / 0.5826 GB, free: 60.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.8011, allocations: 278.6 kB / 0.5829 GB, free: 60.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/0.8012, allocations: 83.14 kB / 0.583 GB, free: 60.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002122/0.8034, allocations: 2.046 MB / 0.585 GB, free: 59.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8034, allocations: 0 / 0.585 GB, free: 59.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005637/0.809, allocations: 1.969 MB / 0.5869 GB, free: 57.24 MB / 410.7 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005162/0.8095, allocations: 258.4 kB / 0.5871 GB, free: 57.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005795/0.8153, allocations: 4.576 MB / 0.5916 GB, free: 53.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.8153, allocations: 4 kB / 0.5916 GB, free: 53.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002197/0.8175, allocations: 2.095 MB / 0.5937 GB, free: 52.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00437/0.8219, allocations: 1.202 MB / 0.5948 GB, free: 51.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/0.8474, allocations: 18.01 MB / 0.6124 GB, free: 34.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/0.8496, allocations: 3.208 MB / 0.6156 GB, free: 31.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002676/0.8523, allocations: 0.8862 MB / 0.6164 GB, free: 30.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001828/0.8541, allocations: 1.285 MB / 0.6177 GB, free: 29.08 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/0.8541, allocations: 0 / 0.6177 GB, free: 29.08 MB / 410.7 MB Notification: Performance of Templates: time 0.225/1.079, allocations: 72.6 MB / 0.6886 GB, free: 106.5 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.61942288512364]