Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.0009387/0.0009387, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001031/0.001031, allocations: 169.7 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9109/0.9109, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.677e-05/1.842e-05, allocations: 6.25 kB / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1401/0.1401, allocations: 39.2 MB / 312.6 MB, free: 7.051 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01813/0.1582, allocations: 11.09 MB / 323.7 MB, free: 15.03 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006152/0.1644, allocations: 384.5 kB / 324.1 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01078/0.1752, allocations: 9.088 MB / 333.2 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009332/0.1845, allocations: 3.758 MB / 337 MB, free: 2.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003858/0.1883, allocations: 2.442 MB / 339.4 MB, free: 132 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01264/0.201, allocations: 13.99 MB / 353.4 MB, free: 2.098 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02307/0.2241, allocations: 17.45 MB / 370.8 MB, free: 492 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01257/0.2366, allocations: 10.93 MB / 381.8 MB, free: 5.535 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009322/0.2459, allocations: 7.602 MB / 389.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004183/0.2501, allocations: 1.98 MB / 391.3 MB, free: 11.94 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005646/0.2558, allocations: 2.39 MB / 393.7 MB, free: 9.547 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002409/0.2582, allocations: 4.157 MB / 397.9 MB, free: 5.379 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00561/0.2638, allocations: 5.255 MB / 403.1 MB, free: 116 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.012/0.2758, allocations: 12.84 MB / 416 MB, free: 3.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2758, allocations: 4 kB / 416 MB, free: 3.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2758, allocations: 0 / 416 MB, free: 3.227 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002722/0.2761, allocations: 0 / 416 MB, free: 3.227 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.01897/0.295, allocations: 15.93 MB / 431.9 MB, free: 3.168 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2951, allocations: 8.031 kB / 431.9 MB, free: 3.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2791/0.5742, allocations: 6.319 MB / 438.2 MB, free: 75.26 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.5845, allocations: 7.453 MB / 445.7 MB, free: 74.79 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006683/0.5852, allocations: 0.9282 MB / 446.6 MB, free: 74.76 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001974/0.5871, allocations: 1.233 MB / 447.9 MB, free: 74.75 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/0.5987, allocations: 9.675 MB / 457.5 MB, free: 73.73 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001764/0.5989, allocations: 29.83 kB / 457.6 MB, free: 73.73 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006987/0.5996, allocations: 0.5 MB / 458.1 MB, free: 73.73 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000434/0.6, allocations: 0.6528 MB / 458.7 MB, free: 73.7 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005738/0.6058, allocations: 4.367 MB / 463.1 MB, free: 73.35 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03628/0.642, allocations: 48.58 MB / 0.4997 GB, free: 27.18 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006289/0.6483, allocations: 7.977 MB / 0.5075 GB, free: 20.94 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.6497, allocations: 1.496 MB / 0.5089 GB, free: 19.48 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006089/0.6557, allocations: 5.547 MB / 0.5143 GB, free: 14.28 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.6558, allocations: 88.16 kB / 0.5144 GB, free: 14.18 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.518e-06/0.6558, allocations: 0 / 0.5144 GB, free: 14.18 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01246/0.6682, allocations: 8.882 MB / 0.5231 GB, free: 5.77 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.6683, allocations: 90.58 kB / 0.5232 GB, free: 5.668 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003116/0.6714, allocations: 4.54 MB / 0.5276 GB, free: 1.828 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001496/0.6715, allocations: 93.7 kB / 0.5277 GB, free: 1.73 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002454/0.674, allocations: 6.119 MB / 0.5337 GB, free: 11.79 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008908/0.6749, allocations: 1.504 MB / 0.5351 GB, free: 10.37 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/0.6762, allocations: 1.514 MB / 0.5366 GB, free: 8.977 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0002162/0.6765, allocations: 476.8 kB / 0.5371 GB, free: 8.508 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009148/0.6774, allocations: 0.7551 MB / 0.5378 GB, free: 7.75 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00295/0.6803, allocations: 5.371 MB / 0.5431 GB, free: 0.6211 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004489/0.6848, allocations: 6.859 MB / 0.5498 GB, free: 8.359 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.884e-05/0.6848, allocations: 32 kB / 0.5498 GB, free: 8.328 MB / 410.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.006133/0.691, allocations: 5.772 MB / 0.5554 GB, free: 3.18 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.774e-05/0.691, allocations: 50.03 kB / 0.5555 GB, free: 3.133 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-05/0.6911, allocations: 104 kB / 0.5556 GB, free: 3.031 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.6925, allocations: 0.8474 MB / 0.5564 GB, free: 2.172 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/0.6951, allocations: 1.507 MB / 0.5579 GB, free: 0.7812 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005323/0.7004, allocations: 8.204 MB / 0.5659 GB, free: 8.398 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.7024, allocations: 287.7 kB / 0.5662 GB, free: 8.117 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/0.7027, allocations: 311.3 kB / 0.5665 GB, free: 7.816 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.00192/0.7046, allocations: 0.638 MB / 0.5671 GB, free: 7.285 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006636/0.7052, allocations: 0.6567 MB / 0.5677 GB, free: 6.625 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003903/0.7092, allocations: 3.381 MB / 0.571 GB, free: 3.234 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/0.7092, allocations: 40 kB / 0.5711 GB, free: 3.195 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.7092, allocations: 11.94 kB / 0.5711 GB, free: 3.184 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.387e-05/0.7092, allocations: 23.92 kB / 0.5711 GB, free: 3.16 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.7193, allocations: 8.983 MB / 0.5799 GB, free: 10.87 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.7193, allocations: 4 kB / 0.5799 GB, free: 10.86 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/0.7208, allocations: 0.6692 MB / 0.5805 GB, free: 10.23 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.722, allocations: 0.7106 MB / 0.5812 GB, free: 9.512 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/0.7222, allocations: 87.97 kB / 0.5813 GB, free: 9.426 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004475/0.7266, allocations: 7.768 MB / 0.5889 GB, free: 1.438 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7266, allocations: 4 kB / 0.5889 GB, free: 1.434 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1454/0.872, allocations: 4.215 MB / 0.593 GB, free: 104.9 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/0.8737, allocations: 0.872 MB / 0.5939 GB, free: 104.9 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005047/0.8742, allocations: 75.34 kB / 0.5939 GB, free: 104.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.8757, allocations: 111.6 kB / 0.594 GB, free: 104.9 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005658/0.8762, allocations: 292.8 kB / 0.5943 GB, free: 104.9 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002367/0.8765, allocations: 95.38 kB / 0.5944 GB, free: 104.9 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002767/0.8792, allocations: 1.99 MB / 0.5964 GB, free: 104.7 MB / 442.8 MB Notification: Performance of sort global known variables: time 1e-07/0.8792, allocations: 0 / 0.5964 GB, free: 104.7 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005494/0.8847, allocations: 1.922 MB / 0.5982 GB, free: 104.7 MB / 442.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,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.0004537/0.8852, allocations: 273.7 kB / 0.5985 GB, free: 104.6 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.005334/0.8905, allocations: 4.358 MB / 0.6027 GB, free: 103.9 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.8905, allocations: 6.688 kB / 0.6028 GB, free: 103.9 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.8928, allocations: 2.159 MB / 0.6049 GB, free: 103.2 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003625/0.8965, allocations: 1.31 MB / 0.6061 GB, free: 103.1 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02089/0.9173, allocations: 17.48 MB / 0.6232 GB, free: 96.44 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002023/0.9194, allocations: 3.098 MB / 0.6262 GB, free: 96.12 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.001864/0.9212, allocations: 0.8466 MB / 0.6271 GB, free: 95.9 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001897/0.9231, allocations: 1.343 MB / 0.6284 GB, free: 95.84 MB / 442.8 MB Notification: Performance of SimCode: time 8.71e-07/0.9231, allocations: 2.078 kB / 0.6284 GB, free: 95.84 MB / 442.8 MB Notification: Performance of Templates: time 0.08929/1.012, allocations: 74.28 MB / 0.7009 GB, free: 32.75 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.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.1.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.350703576114029]