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.0009789/0.0009789, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001614/0.001614, allocations: 167.3 kB / 24.91 MB, free: 8.762 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.9352/0.9352, allocations: 177 MB / 205.2 MB, free: 5.055 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.693e-06/1.693e-06, allocations: 0 / 273.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.175e-05/2.344e-05, allocations: 2.312 kB / 273.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1406/0.1406, allocations: 39.28 MB / 312.8 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02773/0.1684, allocations: 11.72 MB / 324.5 MB, free: 14.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01009/0.1784, allocations: 381.6 kB / 324.9 MB, free: 14.12 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01183/0.1903, allocations: 9.262 MB / 334.1 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009998/0.2003, allocations: 3.752 MB / 337.9 MB, free: 1.391 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00461/0.2049, allocations: 2.45 MB / 340.3 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01421/0.2191, allocations: 14.01 MB / 354.3 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02149/0.2406, allocations: 17.87 MB / 372.2 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01264/0.2532, allocations: 10.94 MB / 383.1 MB, free: 3.855 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007583/0.2608, allocations: 7.688 MB / 390.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002734/0.2635, allocations: 1.977 MB / 392.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004066/0.2676, allocations: 2.397 MB / 395.2 MB, free: 7.777 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002623/0.2702, allocations: 4.153 MB / 399.4 MB, free: 3.613 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007102/0.2773, allocations: 5.255 MB / 404.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01478/0.2921, allocations: 12.85 MB / 417.5 MB, free: 1.461 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2921, allocations: 0 / 417.5 MB, free: 1.461 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.2921, allocations: 0 / 417.5 MB, free: 1.461 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004933/0.2926, allocations: 0 / 417.5 MB, free: 1.461 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.0214/0.314, allocations: 15.01 MB / 432.5 MB, free: 2.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3141, allocations: 19.92 kB / 432.5 MB, free: 2.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2426/0.5567, allocations: 6.45 MB / 438.9 MB, free: 76.46 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008336/0.565, allocations: 4.541 MB / 443.5 MB, free: 76.1 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004007/0.5654, allocations: 0.9309 MB / 444.4 MB, free: 76.07 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001163/0.5666, allocations: 1.234 MB / 445.6 MB, free: 76.06 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009933/0.5765, allocations: 9.893 MB / 455.5 MB, free: 75.11 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001867/0.5767, allocations: 20.09 kB / 455.6 MB, free: 75.1 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007476/0.5774, allocations: 0.5072 MB / 456.1 MB, free: 75.1 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003883/0.5778, allocations: 0.6509 MB / 456.7 MB, free: 75.07 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005906/0.5837, allocations: 4.786 MB / 461.5 MB, free: 73.37 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02972/0.6134, allocations: 37.85 MB / 499.4 MB, free: 39.4 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005712/0.6192, allocations: 6.23 MB / 0.4937 GB, free: 33.35 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.6204, allocations: 1.32 MB / 0.495 GB, free: 32.07 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005993/0.6264, allocations: 4.32 MB / 0.4992 GB, free: 28.06 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.6264, allocations: 80.91 kB / 0.4993 GB, free: 27.97 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.579e-06/0.6264, allocations: 4 kB / 0.4993 GB, free: 27.97 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01211/0.6385, allocations: 8.393 MB / 0.5075 GB, free: 20.06 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.6385, allocations: 94.58 kB / 0.5076 GB, free: 19.95 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002006/0.6405, allocations: 3.504 MB / 0.511 GB, free: 17.16 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001564/0.6407, allocations: 93.7 kB / 0.5111 GB, free: 17.07 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/0.6418, allocations: 5.246 MB / 0.5162 GB, free: 12 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004666/0.6422, allocations: 1.46 MB / 0.5177 GB, free: 10.62 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009677/0.6432, allocations: 1.265 MB / 0.5189 GB, free: 9.484 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.153e-05/0.6432, allocations: 305.1 kB / 0.5192 GB, free: 9.184 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009082/0.6441, allocations: 0.8822 MB / 0.5201 GB, free: 8.297 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.6456, allocations: 3.788 MB / 0.5238 GB, free: 3.293 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003485/0.649, allocations: 5.322 MB / 0.5289 GB, free: 13.1 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.693e-05/0.6491, allocations: 32 kB / 0.529 GB, free: 13.07 MB / 394.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.004925/0.654, allocations: 4.653 MB / 0.5335 GB, free: 9.059 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.456e-05/0.654, allocations: 52 kB / 0.5336 GB, free: 9.008 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.984e-05/0.6541, allocations: 100 kB / 0.5337 GB, free: 8.91 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.6555, allocations: 0.8089 MB / 0.5345 GB, free: 8.098 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/0.6583, allocations: 1.598 MB / 0.536 GB, free: 6.617 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00468/0.663, allocations: 6.031 MB / 0.5419 GB, free: 488 kB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.665, allocations: 295.6 kB / 0.5422 GB, free: 192 kB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003203/0.6653, allocations: 308 kB / 0.5425 GB, free: 15.88 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.00177/0.6671, allocations: 0.5962 MB / 0.5431 GB, free: 15.39 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005881/0.6677, allocations: 442.1 kB / 0.5435 GB, free: 14.97 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003766/0.6715, allocations: 2.785 MB / 0.5462 GB, free: 12.18 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.6715, allocations: 40 kB / 0.5462 GB, free: 12.14 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.6715, allocations: 11.98 kB / 0.5463 GB, free: 12.13 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/0.6715, allocations: 27.86 kB / 0.5463 GB, free: 12.11 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00924/0.6808, allocations: 7.06 MB / 0.5532 GB, free: 5.738 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.6808, allocations: 8 kB / 0.5532 GB, free: 5.73 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/0.6825, allocations: 0.7309 MB / 0.5539 GB, free: 5.039 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.6839, allocations: 0.6638 MB / 0.5545 GB, free: 4.367 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/0.684, allocations: 83.97 kB / 0.5546 GB, free: 4.285 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004223/0.6882, allocations: 5.646 MB / 0.5601 GB, free: 14.5 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6882, allocations: 4 kB / 0.5601 GB, free: 14.49 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004207/0.6924, allocations: 3.437 MB / 0.5635 GB, free: 11.04 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.6936, allocations: 0.5918 MB / 0.5641 GB, free: 10.45 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003524/0.694, allocations: 76 kB / 0.5642 GB, free: 10.37 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009239/0.6949, allocations: 104 kB / 0.5643 GB, free: 10.27 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/0.6953, allocations: 294.2 kB / 0.5645 GB, free: 9.984 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/0.6954, allocations: 83.97 kB / 0.5646 GB, free: 9.902 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.001675/0.6971, allocations: 1.629 MB / 0.5662 GB, free: 8.48 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6971, allocations: 0 / 0.5662 GB, free: 8.48 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004172/0.7013, allocations: 1.918 MB / 0.5681 GB, free: 6.562 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,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.0003817/0.7017, allocations: 261.6 kB / 0.5683 GB, free: 6.348 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.003727/0.7054, allocations: 3.732 MB / 0.572 GB, free: 2.957 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001206/0.7055, allocations: 84 kB / 0.5721 GB, free: 2.867 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.7075, allocations: 1.806 MB / 0.5738 GB, free: 1.137 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.118/0.8254, allocations: 1.298 MB / 0.5751 GB, free: 109.5 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02249/0.8479, allocations: 17.31 MB / 0.592 GB, free: 102.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001938/0.8498, allocations: 2.285 MB / 0.5942 GB, free: 102.6 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002507/0.8523, allocations: 0.8483 MB / 0.595 GB, free: 102.5 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001957/0.8543, allocations: 1.205 MB / 0.5962 GB, free: 102.4 MB / 426.8 MB Notification: Performance of SimCode: time 1.553e-06/0.8543, allocations: 0 / 0.5962 GB, free: 102.4 MB / 426.8 MB Notification: Performance of Templates: time 0.08836/0.9427, allocations: 74.83 MB / 0.6693 GB, free: 43.13 MB / 426.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 -s gbode -gbm=radauIIA3 -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.276641319971532]