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.0009148/0.0009148, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008302/0.0008302, allocations: 147 kB / 24.89 MB, free: 8.777 MB / 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.8804/0.8804, allocations: 173.4 MB / 201.5 MB, free: 8.281 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.543e-06/1.543e-06, allocations: 0 / 268.5 MB, free: 9.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.18e-05/1.335e-05, allocations: 2.312 kB / 268.5 MB, free: 9.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03274/0.03275, allocations: 38.63 MB / 307.2 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02054/0.05329, allocations: 11.45 MB / 318.6 MB, free: 7.477 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006384/0.05967, allocations: 374 kB / 319 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01101/0.07068, allocations: 9.319 MB / 328.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01167/0.08235, allocations: 3.785 MB / 332.1 MB, free: 9.938 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00636/0.08871, allocations: 2.424 MB / 334.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1474/0.2361, allocations: 13.91 MB / 348.4 MB, free: 18.88 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02232/0.2584, allocations: 17.87 MB / 366.3 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01797/0.2764, allocations: 10.93 MB / 377.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01062/0.287, allocations: 7.65 MB / 384.9 MB, free: 7.703 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00452/0.2915, allocations: 1.982 MB / 386.8 MB, free: 5.723 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005674/0.2972, allocations: 2.364 MB / 389.2 MB, free: 3.469 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004562/0.3018, allocations: 4.154 MB / 393.4 MB, free: 76 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009822/0.3116, allocations: 5.242 MB / 398.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01748/0.3291, allocations: 12.81 MB / 411.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3291, allocations: 0 / 411.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3291, allocations: 0.75 kB / 411.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000592/0.3297, allocations: 4 kB / 411.4 MB, free: 15.36 MB / 346.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.02568/0.3553, allocations: 14.96 MB / 426.4 MB, free: 1.156 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3554, allocations: 12.03 kB / 426.4 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01832/0.3737, allocations: 6.511 MB / 432.9 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00933/0.383, allocations: 4.501 MB / 437.4 MB, free: 6.637 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006821/0.3837, allocations: 0.925 MB / 438.3 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003278/0.387, allocations: 1.233 MB / 439.6 MB, free: 4.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02544/0.4124, allocations: 9.867 MB / 449.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004204/0.4129, allocations: 30.53 kB / 449.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00304/0.4159, allocations: 0.502 MB / 450 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004725/0.4164, allocations: 0.6543 MB / 450.6 MB, free: 9.867 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.4321, allocations: 4.755 MB / 455.4 MB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06366/0.4958, allocations: 37.77 MB / 493.1 MB, free: 0.5078 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2633/0.7591, allocations: 6.195 MB / 499.3 MB, free: 88.13 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.762, allocations: 1.307 MB / 0.4889 GB, free: 88.05 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01133/0.7733, allocations: 4.258 MB / 0.4931 GB, free: 87.69 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.956e-05/0.7734, allocations: 70.12 kB / 0.4931 GB, free: 87.64 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 6.031e-06/0.7734, allocations: 3.219 kB / 0.4931 GB, free: 87.64 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.02047/0.7939, allocations: 8.367 MB / 0.5013 GB, free: 87.02 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.667e-05/0.7939, allocations: 94.39 kB / 0.5014 GB, free: 86.96 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004259/0.7982, allocations: 3.485 MB / 0.5048 GB, free: 86.5 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007137/0.7989, allocations: 94.39 kB / 0.5049 GB, free: 86.47 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.801, allocations: 5.247 MB / 0.51 GB, free: 83.95 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001317/0.8023, allocations: 1.453 MB / 0.5114 GB, free: 83.02 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/0.8035, allocations: 1.265 MB / 0.5127 GB, free: 82.9 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.497e-05/0.8036, allocations: 301.1 kB / 0.513 GB, free: 82.61 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.8049, allocations: 0.8781 MB / 0.5138 GB, free: 82.58 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/0.8067, allocations: 3.783 MB / 0.5175 GB, free: 78.77 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005666/0.8123, allocations: 5.32 MB / 0.5227 GB, free: 74.88 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001513/0.8125, allocations: 27.06 kB / 0.5227 GB, free: 74.88 MB / 410.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01318/0.8257, allocations: 4.635 MB / 0.5273 GB, free: 74.61 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/0.8258, allocations: 53.41 kB / 0.5273 GB, free: 74.61 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002304/0.826, allocations: 101.8 kB / 0.5274 GB, free: 74.61 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.8285, allocations: 0.8089 MB / 0.5282 GB, free: 74.53 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005186/0.8337, allocations: 1.486 MB / 0.5296 GB, free: 74.53 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006749/0.8405, allocations: 6.011 MB / 0.5355 GB, free: 70.86 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006361/0.8468, allocations: 295.9 kB / 0.5358 GB, free: 70.82 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001685/0.8485, allocations: 296.5 kB / 0.5361 GB, free: 70.82 MB / 410.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.004294/0.8528, allocations: 0.595 MB / 0.5367 GB, free: 70.59 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001485/0.8543, allocations: 435 kB / 0.5371 GB, free: 70.33 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005494/0.8598, allocations: 2.803 MB / 0.5398 GB, free: 68.66 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.415e-05/0.8598, allocations: 43.28 kB / 0.5399 GB, free: 68.62 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.919e-05/0.8599, allocations: 13.94 kB / 0.5399 GB, free: 68.61 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.49e-05/0.8599, allocations: 24.95 kB / 0.5399 GB, free: 68.61 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/0.8745, allocations: 7.042 MB / 0.5468 GB, free: 64.32 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.8745, allocations: 4 kB / 0.5468 GB, free: 64.31 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/0.8762, allocations: 0.6492 MB / 0.5474 GB, free: 63.81 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001407/0.8776, allocations: 0.6616 MB / 0.548 GB, free: 63.34 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002995/0.8779, allocations: 83.95 kB / 0.5481 GB, free: 63.32 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00416/0.882, allocations: 5.627 MB / 0.5536 GB, free: 58.61 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.882, allocations: 7.562 kB / 0.5536 GB, free: 58.61 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/0.8869, allocations: 3.414 MB / 0.557 GB, free: 55.99 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/0.8886, allocations: 0.5902 MB / 0.5575 GB, free: 55.5 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000494/0.8891, allocations: 73.19 kB / 0.5576 GB, free: 55.48 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.8901, allocations: 116.2 kB / 0.5577 GB, free: 55.43 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003963/0.8905, allocations: 287.5 kB / 0.558 GB, free: 55.32 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.8906, allocations: 86.41 kB / 0.5581 GB, free: 55.27 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.00162/0.8923, allocations: 1.612 MB / 0.5597 GB, free: 54.24 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8923, allocations: 0 / 0.5597 GB, free: 54.24 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.006138/0.8984, allocations: 1.92 MB / 0.5615 GB, free: 52.5 MB / 410.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.000902/0.8993, allocations: 257.2 kB / 0.5618 GB, free: 52.36 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005473/0.9048, allocations: 3.734 MB / 0.5654 GB, free: 49.45 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001674/0.9049, allocations: 83.75 kB / 0.5655 GB, free: 49.36 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00204/0.907, allocations: 1.786 MB / 0.5672 GB, free: 47.68 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004163/0.9111, allocations: 1.282 MB / 0.5685 GB, free: 46.45 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03058/0.9417, allocations: 17.34 MB / 0.5854 GB, free: 29.01 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003948/0.9457, allocations: 2.276 MB / 0.5877 GB, free: 26.7 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003094/0.9488, allocations: 0.8453 MB / 0.5885 GB, free: 25.86 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/0.9509, allocations: 1.182 MB / 0.5896 GB, free: 24.65 MB / 410.8 MB Notification: Performance of SimCode: time 3.526e-06/0.9509, allocations: 4 kB / 0.5896 GB, free: 24.65 MB / 410.8 MB Notification: Performance of Templates: time 0.2751/1.226, allocations: 73.91 MB / 0.6618 GB, free: 111.1 MB / 442.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.416579992044717]