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.001434/0.001434, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001238/0.001238, allocations: 170.1 kB / 25.33 MB, free: 8.598 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.9249/0.9249, allocations: 158.6 MB / 187.2 MB, free: 2.926 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.724e-06/1.724e-06, allocations: 0 / 251.1 MB, free: 7.457 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.882e-05/2.054e-05, allocations: 2.312 kB / 251.1 MB, free: 7.453 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03079/0.03081, allocations: 39.24 MB / 290.4 MB, free: 40 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02552/0.05633, allocations: 10.51 MB / 300.9 MB, free: 5.496 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009638/0.06597, allocations: 318.2 kB / 301.2 MB, free: 5.184 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01156/0.07753, allocations: 9.146 MB / 310.3 MB, free: 12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009596/0.08713, allocations: 3.798 MB / 314.1 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004223/0.09135, allocations: 2.432 MB / 316.5 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01319/0.1045, allocations: 13.96 MB / 330.5 MB, free: 7.719 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02195/0.1265, allocations: 17.3 MB / 347.8 MB, free: 6.266 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1873/0.3138, allocations: 10.72 MB / 358.5 MB, free: 34.3 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01314/0.327, allocations: 7.746 MB / 366.3 MB, free: 34.3 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005191/0.3322, allocations: 1.99 MB / 368.3 MB, free: 34.3 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006398/0.3386, allocations: 2.382 MB / 370.6 MB, free: 34.3 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003353/0.3419, allocations: 4.316 MB / 375 MB, free: 34.3 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009846/0.3518, allocations: 5.318 MB / 380.3 MB, free: 34.3 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0155/0.3673, allocations: 13.05 MB / 393.3 MB, free: 30.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3673, allocations: 2.953 kB / 393.3 MB, free: 30.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3673, allocations: 0 / 393.3 MB, free: 30.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006332/0.3679, allocations: 0 / 393.3 MB, free: 30.75 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.02755/0.3954, allocations: 16.71 MB / 410 MB, free: 19.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3955, allocations: 11.98 kB / 410.1 MB, free: 19.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02674/0.4222, allocations: 11.35 MB / 421.4 MB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01358/0.4358, allocations: 6.963 MB / 428.4 MB, free: 1.668 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006653/0.4365, allocations: 0.9479 MB / 429.3 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00358/0.4401, allocations: 1.242 MB / 430.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02417/0.4642, allocations: 10.99 MB / 441.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002565/0.4645, allocations: 23.28 kB / 441.6 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001109/0.4656, allocations: 0.5117 MB / 442.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005588/0.4662, allocations: 0.741 MB / 442.8 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01691/0.4831, allocations: 6.261 MB / 449.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07195/0.555, allocations: 49.7 MB / 498.8 MB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01494/0.57, allocations: 13.85 MB / 0.5006 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1807/0.7506, allocations: 1.852 MB / 0.5024 GB, free: 94.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.7618, allocations: 7.065 MB / 0.5093 GB, free: 93.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.7618, allocations: 68.17 kB / 0.5094 GB, free: 93.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=349): time 5.13e-06/0.7619, allocations: 5.5 kB / 0.5094 GB, free: 93.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=389): time 0.01921/0.7811, allocations: 11.48 MB / 0.5206 GB, free: 91.67 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.7811, allocations: 93.16 kB / 0.5207 GB, free: 91.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004998/0.7861, allocations: 4.873 MB / 0.5254 GB, free: 90.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001784/0.7863, allocations: 93.05 kB / 0.5255 GB, free: 90.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002322/0.7886, allocations: 6.366 MB / 0.5317 GB, free: 87.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007856/0.7894, allocations: 1.471 MB / 0.5332 GB, free: 86.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001561/0.7909, allocations: 1.657 MB / 0.5348 GB, free: 86.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.131e-05/0.791, allocations: 479.9 kB / 0.5353 GB, free: 85.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/0.7927, allocations: 1.035 MB / 0.5363 GB, free: 85.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003313/0.796, allocations: 6.548 MB / 0.5427 GB, free: 78.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007003/0.803, allocations: 8.379 MB / 0.5508 GB, free: 71.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001063/0.8031, allocations: 34.94 kB / 0.5509 GB, free: 71.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01003/0.8131, allocations: 6.929 MB / 0.5576 GB, free: 71.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.168e-05/0.8132, allocations: 60.91 kB / 0.5577 GB, free: 71.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001391/0.8133, allocations: 127.8 kB / 0.5578 GB, free: 71.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/0.8151, allocations: 0.9162 MB / 0.5587 GB, free: 71.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003245/0.8184, allocations: 1.815 MB / 0.5605 GB, free: 71.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005562/0.8239, allocations: 8.509 MB / 0.5688 GB, free: 65.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003568/0.8275, allocations: 440.4 kB / 0.5692 GB, free: 65.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004472/0.8279, allocations: 422.6 kB / 0.5696 GB, free: 65.5 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.002759/0.8307, allocations: 0.709 MB / 0.5703 GB, free: 65.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008167/0.8315, allocations: 0.6594 MB / 0.571 GB, free: 64.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004827/0.8363, allocations: 3.706 MB / 0.5746 GB, free: 64.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.8364, allocations: 36 kB / 0.5746 GB, free: 64.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.8364, allocations: 16 kB / 0.5746 GB, free: 64.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.552e-05/0.8364, allocations: 18.84 kB / 0.5747 GB, free: 64.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01812/0.8545, allocations: 11.69 MB / 0.5861 GB, free: 54.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.8545, allocations: 7.875 kB / 0.5861 GB, free: 54.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002241/0.8568, allocations: 0.7519 MB / 0.5868 GB, free: 53.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001882/0.8587, allocations: 0.7493 MB / 0.5875 GB, free: 53.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000234/0.8589, allocations: 83.45 kB / 0.5876 GB, free: 53.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005958/0.8649, allocations: 8 MB / 0.5954 GB, free: 45.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.8649, allocations: 7.984 kB / 0.5954 GB, free: 45.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007677/0.8725, allocations: 4.592 MB / 0.5999 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/0.8746, allocations: 0.9301 MB / 0.6008 GB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005552/0.8751, allocations: 68 kB / 0.6009 GB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.8767, allocations: 225.6 kB / 0.6011 GB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004532/0.8771, allocations: 280.7 kB / 0.6014 GB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002121/0.8774, allocations: 107.8 kB / 0.6015 GB, free: 39.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003322/0.8807, allocations: 2.237 MB / 0.6037 GB, free: 37.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.8807, allocations: 0 / 0.6037 GB, free: 37.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00699/0.8877, allocations: 1.98 MB / 0.6056 GB, free: 36.01 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.0005185/0.8882, allocations: 259.7 kB / 0.6058 GB, free: 35.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007883/0.8961, allocations: 4.984 MB / 0.6107 GB, free: 31.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.8961, allocations: 4.438 kB / 0.6107 GB, free: 31.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002697/0.8988, allocations: 2.258 MB / 0.6129 GB, free: 28.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/0.9021, allocations: 1.229 MB / 0.6141 GB, free: 27.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/0.9241, allocations: 18.18 MB / 0.6319 GB, free: 9.359 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001985/0.9261, allocations: 3.208 MB / 0.635 GB, free: 6.113 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003306/0.9294, allocations: 1.997 MB / 0.637 GB, free: 4.109 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007671/0.9301, allocations: 416.4 kB / 0.6374 GB, free: 3.703 MB / 410.7 MB Notification: Performance of SimCode: time 1.512e-06/0.9301, allocations: 0 / 0.6374 GB, free: 3.703 MB / 410.7 MB Notification: Performance of Templates: time 0.234/1.164, allocations: 66 MB / 0.7018 GB, free: 96.94 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.588906286749989]