Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009581/0.0009581, allocations: 85.8 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009189/0.0009189, allocations: 161.9 kB / 24.82 MB, free: 9.316 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8951/0.8951, allocations: 177 MB / 205.1 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 273.4 MB, free: 1.152 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.68e-05/1.806e-05, allocations: 2.312 kB / 273.4 MB, free: 1.148 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1338/0.1338, allocations: 39.21 MB / 312.6 MB, free: 6.914 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02086/0.1546, allocations: 11.1 MB / 323.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007046/0.1617, allocations: 380.6 kB / 324.1 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01083/0.1725, allocations: 9.073 MB / 333.1 MB, free: 6.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.1826, allocations: 3.755 MB / 336.9 MB, free: 2.402 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005408/0.188, allocations: 2.442 MB / 339.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01451/0.2025, allocations: 13.99 MB / 353.3 MB, free: 1.926 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0254/0.2279, allocations: 17.46 MB / 370.8 MB, free: 308 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01724/0.2452, allocations: 10.92 MB / 381.7 MB, free: 5.359 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01063/0.2558, allocations: 7.598 MB / 389.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004706/0.2605, allocations: 1.977 MB / 391.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006605/0.2671, allocations: 2.393 MB / 393.7 MB, free: 9.375 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005089/0.2722, allocations: 4.165 MB / 397.9 MB, free: 5.199 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01008/0.2823, allocations: 5.248 MB / 403.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01603/0.2983, allocations: 12.85 MB / 415.9 MB, free: 3.055 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2983, allocations: 0 / 415.9 MB, free: 3.055 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2983, allocations: 0 / 415.9 MB, free: 3.055 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005585/0.2989, allocations: 3.984 kB / 416 MB, free: 3.051 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.02555/0.3244, allocations: 15.93 MB / 431.9 MB, free: 2.988 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3245, allocations: 15.98 kB / 431.9 MB, free: 2.973 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2474/0.5718, allocations: 6.317 MB / 438.2 MB, free: 75.21 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.584, allocations: 7.461 MB / 445.7 MB, free: 74.75 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007084/0.5847, allocations: 0.9281 MB / 446.6 MB, free: 74.72 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002863/0.5876, allocations: 1.243 MB / 447.8 MB, free: 74.7 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.023/0.6106, allocations: 9.676 MB / 457.5 MB, free: 73.69 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002833/0.6109, allocations: 23.52 kB / 457.5 MB, free: 73.68 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008528/0.6117, allocations: 0.5049 MB / 458.1 MB, free: 73.68 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000461/0.6122, allocations: 0.6591 MB / 458.7 MB, free: 73.65 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007435/0.6196, allocations: 4.364 MB / 463.1 MB, free: 73.18 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03819/0.6578, allocations: 48.57 MB / 0.4997 GB, free: 26.93 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006639/0.6644, allocations: 7.982 MB / 0.5074 GB, free: 20.7 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.6658, allocations: 1.505 MB / 0.5089 GB, free: 19.24 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006343/0.6722, allocations: 5.542 MB / 0.5143 GB, free: 14.03 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.6722, allocations: 80.17 kB / 0.5144 GB, free: 13.94 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.348e-06/0.6722, allocations: 0 / 0.5144 GB, free: 13.94 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01253/0.6847, allocations: 8.873 MB / 0.5231 GB, free: 5.543 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.6848, allocations: 102.6 kB / 0.5232 GB, free: 5.43 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00323/0.688, allocations: 4.532 MB / 0.5276 GB, free: 1.598 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.6881, allocations: 93.55 kB / 0.5277 GB, free: 1.504 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002737/0.6909, allocations: 6.118 MB / 0.5337 GB, free: 11.56 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009151/0.6918, allocations: 1.512 MB / 0.5351 GB, free: 10.13 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/0.6933, allocations: 1.522 MB / 0.5366 GB, free: 8.738 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.6934, allocations: 476.8 kB / 0.5371 GB, free: 8.27 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.6944, allocations: 0.759 MB / 0.5378 GB, free: 7.508 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003318/0.6977, allocations: 5.36 MB / 0.5431 GB, free: 396 kB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005261/0.703, allocations: 6.859 MB / 0.5497 GB, free: 8.125 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-05/0.703, allocations: 28 kB / 0.5498 GB, free: 8.098 MB / 410.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.006824/0.7099, allocations: 5.772 MB / 0.5554 GB, free: 2.949 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.725e-05/0.7099, allocations: 52.03 kB / 0.5555 GB, free: 2.898 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.518e-05/0.71, allocations: 100 kB / 0.5556 GB, free: 2.801 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/0.7115, allocations: 0.8518 MB / 0.5564 GB, free: 1.941 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00307/0.7146, allocations: 1.513 MB / 0.5579 GB, free: 0.5469 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005664/0.7203, allocations: 8.191 MB / 0.5659 GB, free: 8.168 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00238/0.7226, allocations: 295.9 kB / 0.5661 GB, free: 7.879 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003188/0.723, allocations: 308 kB / 0.5664 GB, free: 7.578 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.002008/0.725, allocations: 0.6365 MB / 0.5671 GB, free: 7.051 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007593/0.7257, allocations: 0.6568 MB / 0.5677 GB, free: 6.391 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.73, allocations: 3.386 MB / 0.571 GB, free: 2.992 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.73, allocations: 40 kB / 0.571 GB, free: 2.953 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.7301, allocations: 11.94 kB / 0.5711 GB, free: 2.941 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.412e-05/0.7301, allocations: 19.92 kB / 0.5711 GB, free: 2.922 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.7421, allocations: 8.99 MB / 0.5799 GB, free: 10.63 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.7421, allocations: 4 kB / 0.5799 GB, free: 10.63 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/0.7436, allocations: 0.6631 MB / 0.5805 GB, free: 10 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001326/0.745, allocations: 0.7133 MB / 0.5812 GB, free: 9.277 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/0.7451, allocations: 91.97 kB / 0.5813 GB, free: 9.188 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005001/0.7501, allocations: 7.762 MB / 0.5889 GB, free: 1.211 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7501, allocations: 4 kB / 0.5889 GB, free: 1.207 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1506/0.9008, allocations: 4.215 MB / 0.593 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/0.9023, allocations: 0.8685 MB / 0.5938 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004053/0.9027, allocations: 76.64 kB / 0.5939 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.9038, allocations: 106.9 kB / 0.594 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004814/0.9043, allocations: 296.1 kB / 0.5943 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001938/0.9045, allocations: 97.88 kB / 0.5944 GB, free: 104.8 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002377/0.9068, allocations: 1.991 MB / 0.5963 GB, free: 104.6 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9068, allocations: 1.031 kB / 0.5963 GB, free: 104.6 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004903/0.9117, allocations: 1.925 MB / 0.5982 GB, free: 104.6 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.0004287/0.9122, allocations: 271.5 kB / 0.5985 GB, free: 104.5 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.005583/0.9177, allocations: 4.364 MB / 0.6027 GB, free: 103.8 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.9178, allocations: 2.531 kB / 0.6027 GB, free: 103.8 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002666/0.9204, allocations: 2.166 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.003884/0.9243, allocations: 1.297 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.02207/0.9464, allocations: 17.49 MB / 0.6232 GB, free: 96.39 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002705/0.9491, allocations: 3.1 MB / 0.6262 GB, free: 96.07 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.002781/0.9519, allocations: 0.8486 MB / 0.6271 GB, free: 95.85 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/0.954, allocations: 1.343 MB / 0.6284 GB, free: 95.78 MB / 442.8 MB Notification: Performance of SimCode: time 2.064e-06/0.954, allocations: 0 / 0.6284 GB, free: 95.78 MB / 442.8 MB Notification: Performance of Templates: time 0.09139/1.045, allocations: 74.28 MB / 0.7009 GB, free: 32.22 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.55445881607011]