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.SMPM_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.001417/0.001417, 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.00137/0.00137, 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.8457/0.8457, allocations: 173.4 MB / 201.1 MB, free: 9.336 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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 268 MB, free: 6.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.806e-05/1.946e-05, allocations: 2.312 kB / 268.1 MB, free: 6.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.14/0.14, allocations: 40.44 MB / 308.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01716/0.1572, allocations: 10.88 MB / 319.4 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005393/0.1626, allocations: 375.5 kB / 319.7 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009328/0.1719, allocations: 9.359 MB / 329.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007675/0.1796, allocations: 3.77 MB / 332.9 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003745/0.1833, allocations: 2.422 MB / 335.3 MB, free: 7.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.1943, allocations: 13.9 MB / 349.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01792/0.2122, allocations: 17.44 MB / 366.6 MB, free: 8.129 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01156/0.2238, allocations: 10.91 MB / 377.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007914/0.2317, allocations: 7.544 MB / 385.1 MB, free: 5.641 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003258/0.235, allocations: 1.98 MB / 387.1 MB, free: 3.66 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003207/0.2382, allocations: 2.374 MB / 389.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002247/0.2404, allocations: 4.153 MB / 393.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004895/0.2453, allocations: 5.247 MB / 398.9 MB, free: 7.863 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.2568, allocations: 12.82 MB / 411.7 MB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2568, allocations: 0 / 411.7 MB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2568, allocations: 4 kB / 411.7 MB, free: 11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002076/0.257, allocations: 0 / 411.7 MB, free: 11 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.01955/0.2766, allocations: 16.46 MB / 428.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.2766, allocations: 8.922 kB / 428.2 MB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01808/0.2947, allocations: 8.089 MB / 436.2 MB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2253/0.52, allocations: 7.89 MB / 444.1 MB, free: 77.79 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004833/0.5204, allocations: 0.9281 MB / 445.1 MB, free: 77.76 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/0.5219, allocations: 1.236 MB / 446.3 MB, free: 77.75 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01651/0.5384, allocations: 10.52 MB / 456.8 MB, free: 76.74 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002435/0.5386, allocations: 24.28 kB / 456.8 MB, free: 76.74 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009735/0.5396, allocations: 0.507 MB / 457.3 MB, free: 76.74 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004756/0.5401, allocations: 0.6545 MB / 458 MB, free: 76.71 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.553, allocations: 5.515 MB / 463.5 MB, free: 76.55 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0921/0.6451, allocations: 48.93 MB / 0.5004 GB, free: 33.97 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009303/0.6544, allocations: 8.897 MB / 0.5091 GB, free: 26.71 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.6563, allocations: 1.707 MB / 0.5108 GB, free: 25 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006574/0.6629, allocations: 5.719 MB / 0.5164 GB, free: 19.54 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.6629, allocations: 83.83 kB / 0.5165 GB, free: 19.45 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 5.21e-06/0.6629, allocations: 0 / 0.5165 GB, free: 19.45 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01431/0.6772, allocations: 10.85 MB / 0.5271 GB, free: 9.055 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.6772, allocations: 94.58 kB / 0.5271 GB, free: 8.949 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00352/0.6808, allocations: 4.59 MB / 0.5316 GB, free: 4.355 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001534/0.6809, allocations: 89.7 kB / 0.5317 GB, free: 4.262 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001966/0.6829, allocations: 6.068 MB / 0.5376 GB, free: 14.18 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008548/0.6837, allocations: 1.501 MB / 0.5391 GB, free: 12.7 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001527/0.6853, allocations: 1.484 MB / 0.5405 GB, free: 11.2 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 9.168e-05/0.6854, allocations: 476.8 kB / 0.541 GB, free: 10.73 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/0.6869, allocations: 0.9856 MB / 0.542 GB, free: 9.742 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003382/0.6903, allocations: 5.549 MB / 0.5474 GB, free: 2.258 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005472/0.6957, allocations: 7.203 MB / 0.5544 GB, free: 9.477 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.315e-05/0.6958, allocations: 38.3 kB / 0.5545 GB, free: 9.445 MB / 410.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.007497/0.7033, allocations: 6.292 MB / 0.5606 GB, free: 3.766 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.786e-05/0.7033, allocations: 48 kB / 0.5606 GB, free: 3.719 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.912e-05/0.7034, allocations: 100 kB / 0.5607 GB, free: 3.621 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/0.705, allocations: 0.8875 MB / 0.5616 GB, free: 2.715 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002917/0.708, allocations: 1.615 MB / 0.5632 GB, free: 1.219 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006713/0.7147, allocations: 8.463 MB / 0.5715 GB, free: 8.465 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003069/0.7177, allocations: 399.5 kB / 0.5718 GB, free: 8.074 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004726/0.7182, allocations: 360 kB / 0.5722 GB, free: 7.723 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.002217/0.7204, allocations: 0.6411 MB / 0.5728 GB, free: 7.188 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009196/0.7214, allocations: 0.6528 MB / 0.5734 GB, free: 6.531 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006641/0.728, allocations: 3.76 MB / 0.5771 GB, free: 2.746 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/0.728, allocations: 44 kB / 0.5772 GB, free: 2.703 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.728, allocations: 8 kB / 0.5772 GB, free: 2.695 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-05/0.7281, allocations: 23.91 kB / 0.5772 GB, free: 2.672 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1589/0.887, allocations: 11.75 MB / 0.5887 GB, free: 95.88 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.887, allocations: 5.094 kB / 0.5887 GB, free: 95.88 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/0.889, allocations: 0.7559 MB / 0.5894 GB, free: 95.88 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001818/0.8908, allocations: 0.7406 MB / 0.5901 GB, free: 95.82 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003772/0.8912, allocations: 92.98 kB / 0.5902 GB, free: 95.82 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005146/0.8963, allocations: 7.999 MB / 0.598 GB, free: 90.4 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.8963, allocations: 4.219 kB / 0.598 GB, free: 90.4 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007442/0.9037, allocations: 4.75 MB / 0.6027 GB, free: 89.69 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/0.9057, allocations: 0.9291 MB / 0.6036 GB, free: 89.69 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006661/0.9063, allocations: 75.22 kB / 0.6036 GB, free: 89.69 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.9077, allocations: 218.2 kB / 0.6039 GB, free: 89.69 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000485/0.9082, allocations: 287.1 kB / 0.6041 GB, free: 89.68 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/0.9083, allocations: 124.5 kB / 0.6042 GB, free: 89.68 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003501/0.9118, allocations: 2.142 MB / 0.6063 GB, free: 89.46 MB / 426.8 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9118, allocations: 0 / 0.6063 GB, free: 89.46 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006396/0.9182, allocations: 1.917 MB / 0.6082 GB, free: 89.46 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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,62.5%), (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.0009276/0.9192, allocations: 274.2 kB / 0.6085 GB, free: 89.38 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.00709/0.9263, allocations: 4.74 MB / 0.6131 GB, free: 88.66 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.9263, allocations: 0 / 0.6131 GB, free: 88.66 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00297/0.9292, allocations: 2.317 MB / 0.6154 GB, free: 88.02 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004575/0.9338, allocations: 1.287 MB / 0.6166 GB, free: 87.9 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02514/0.959, allocations: 17.64 MB / 0.6339 GB, free: 79.53 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003369/0.9623, allocations: 3.096 MB / 0.6369 GB, free: 78.02 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003562/0.9659, allocations: 1.848 MB / 0.6387 GB, free: 76.86 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008393/0.9667, allocations: 402.2 kB / 0.6391 GB, free: 76.51 MB / 426.8 MB Notification: Performance of SimCode: time 1.834e-06/0.9667, allocations: 0 / 0.6391 GB, free: 76.51 MB / 426.8 MB Notification: Performance of Templates: time 0.08217/1.049, allocations: 70.42 MB / 0.7078 GB, free: 10.62 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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/SMPM_CurrentSource/SMPM_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.175208265893161]