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.0009379/0.0009379, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009736/0.0009736, allocations: 148.2 kB / 24.81 MB, free: 9.27 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.8913/0.8913, allocations: 173.3 MB / 201.4 MB, free: 9.227 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.724e-06/1.724e-06, allocations: 0 / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.309e-05/1.482e-05, allocations: 2.312 kB / 268.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.141/0.141, allocations: 38.6 MB / 307.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.159, allocations: 10.84 MB / 317.9 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005625/0.1646, allocations: 375 kB / 318.3 MB, free: 5.977 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008165/0.1728, allocations: 9.071 MB / 327.3 MB, free: 15.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006646/0.1794, allocations: 3.747 MB / 331.1 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003249/0.1827, allocations: 2.409 MB / 333.5 MB, free: 9.254 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009958/0.1926, allocations: 13.9 MB / 347.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01681/0.2094, allocations: 17.44 MB / 364.8 MB, free: 9.711 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01061/0.22, allocations: 10.92 MB / 375.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006767/0.2268, allocations: 7.567 MB / 383.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002019/0.2288, allocations: 1.98 MB / 385.3 MB, free: 5.215 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002808/0.2316, allocations: 2.37 MB / 387.7 MB, free: 2.844 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002187/0.2338, allocations: 4.153 MB / 391.8 MB, free: 14.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004645/0.2385, allocations: 5.255 MB / 397.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01052/0.249, allocations: 12.82 MB / 409.9 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.249, allocations: 0 / 409.9 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.249, allocations: 0 / 409.9 MB, free: 12.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002115/0.2492, allocations: 0 / 409.9 MB, free: 12.56 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.01911/0.2683, allocations: 15.89 MB / 425.8 MB, free: 12.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.2684, allocations: 12.92 kB / 425.8 MB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01544/0.2838, allocations: 6.374 MB / 432.2 MB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.243/0.5268, allocations: 7.423 MB / 439.6 MB, free: 80.01 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006883/0.5275, allocations: 0.9284 MB / 440.5 MB, free: 79.98 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/0.5293, allocations: 1.231 MB / 441.7 MB, free: 79.98 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.5422, allocations: 9.655 MB / 451.4 MB, free: 78.96 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001838/0.5424, allocations: 21.41 kB / 451.4 MB, free: 78.96 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007214/0.5431, allocations: 0.5031 MB / 451.9 MB, free: 78.96 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003727/0.5435, allocations: 0.66 MB / 452.6 MB, free: 78.94 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00577/0.5493, allocations: 4.322 MB / 456.9 MB, free: 78.64 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03792/0.5872, allocations: 48.47 MB / 0.4935 GB, free: 42.06 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006304/0.5935, allocations: 7.879 MB / 0.5012 GB, free: 35.92 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001349/0.5949, allocations: 1.489 MB / 0.5027 GB, free: 34.47 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006081/0.6009, allocations: 5.451 MB / 0.508 GB, free: 29.37 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.601, allocations: 76.23 kB / 0.5081 GB, free: 29.28 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.779e-06/0.601, allocations: 0 / 0.5081 GB, free: 29.28 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.0124/0.6134, allocations: 8.839 MB / 0.5167 GB, free: 21.04 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.6134, allocations: 94.58 kB / 0.5168 GB, free: 20.93 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003453/0.6169, allocations: 4.527 MB / 0.5212 GB, free: 17.24 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000161/0.617, allocations: 89.7 kB / 0.5213 GB, free: 17.14 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001918/0.6189, allocations: 6.107 MB / 0.5273 GB, free: 11.5 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006377/0.6196, allocations: 1.515 MB / 0.5288 GB, free: 10.07 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00121/0.6208, allocations: 1.502 MB / 0.5302 GB, free: 8.691 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.264e-05/0.6208, allocations: 480.7 kB / 0.5307 GB, free: 8.219 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008162/0.6216, allocations: 0.7512 MB / 0.5314 GB, free: 7.465 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001955/0.6236, allocations: 5.359 MB / 0.5366 GB, free: 352 kB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004764/0.6284, allocations: 6.85 MB / 0.5433 GB, free: 8.094 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.138e-05/0.6284, allocations: 28 kB / 0.5434 GB, free: 8.066 MB / 394.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.006137/0.6345, allocations: 5.741 MB / 0.549 GB, free: 2.945 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.6346, allocations: 52 kB / 0.549 GB, free: 2.895 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.845e-05/0.6346, allocations: 107.9 kB / 0.5491 GB, free: 2.789 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/0.6362, allocations: 0.8539 MB / 0.55 GB, free: 1.926 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/0.6388, allocations: 1.511 MB / 0.5514 GB, free: 0.5352 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.6443, allocations: 8.197 MB / 0.5594 GB, free: 8.152 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/0.6466, allocations: 291.7 kB / 0.5597 GB, free: 7.867 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003152/0.6469, allocations: 304 kB / 0.56 GB, free: 7.57 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.002058/0.6489, allocations: 0.6421 MB / 0.5606 GB, free: 7.035 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007011/0.6497, allocations: 0.6567 MB / 0.5613 GB, free: 6.375 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004175/0.6538, allocations: 3.384 MB / 0.5646 GB, free: 2.984 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.6538, allocations: 40 kB / 0.5646 GB, free: 2.945 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.6539, allocations: 8 kB / 0.5646 GB, free: 2.938 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/0.6539, allocations: 19.92 kB / 0.5646 GB, free: 2.918 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/0.665, allocations: 8.95 MB / 0.5734 GB, free: 10.66 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.665, allocations: 8.031 kB / 0.5734 GB, free: 10.65 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/0.6666, allocations: 0.6544 MB / 0.574 GB, free: 10.04 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.6679, allocations: 0.7015 MB / 0.5747 GB, free: 9.32 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/0.668, allocations: 87.98 kB / 0.5748 GB, free: 9.234 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/0.6728, allocations: 7.759 MB / 0.5824 GB, free: 1.25 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.6728, allocations: 7.562 kB / 0.5824 GB, free: 1.246 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1558/0.8287, allocations: 4.185 MB / 0.5865 GB, free: 97.28 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001743/0.8304, allocations: 0.8646 MB / 0.5873 GB, free: 97.28 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005402/0.8309, allocations: 78.95 kB / 0.5874 GB, free: 97.28 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.8321, allocations: 111.8 kB / 0.5875 GB, free: 97.28 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004849/0.8325, allocations: 292.8 kB / 0.5878 GB, free: 97.28 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/0.8327, allocations: 92.28 kB / 0.5879 GB, free: 97.28 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002425/0.8352, allocations: 1.982 MB / 0.5898 GB, free: 97.05 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8352, allocations: 0 / 0.5898 GB, free: 97.05 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004851/0.84, allocations: 1.916 MB / 0.5917 GB, free: 97.05 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.0004738/0.8405, allocations: 271.1 kB / 0.5919 GB, free: 96.97 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.004841/0.8453, allocations: 4.345 MB / 0.5962 GB, free: 96.26 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.8453, allocations: 0 / 0.5962 GB, free: 96.26 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001942/0.8473, allocations: 2.15 MB / 0.5983 GB, free: 95.63 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003801/0.8511, allocations: 1.289 MB / 0.5995 GB, free: 95.53 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/0.8764, allocations: 17.5 MB / 0.6166 GB, free: 88.83 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003055/0.8794, allocations: 3.1 MB / 0.6196 GB, free: 88.52 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003256/0.8827, allocations: 0.8428 MB / 0.6205 GB, free: 88.28 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002465/0.8852, allocations: 1.319 MB / 0.6218 GB, free: 88.21 MB / 426.8 MB Notification: Performance of SimCode: time 1.553e-06/0.8852, allocations: 0.9844 kB / 0.6218 GB, free: 88.21 MB / 426.8 MB Notification: Performance of Templates: time 0.09568/0.9808, allocations: 73.45 MB / 0.6935 GB, free: 24.94 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.235814621672034]