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.001011/0.001011, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001173/0.001173, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.9064/0.9064, allocations: 177 MB / 204.8 MB, free: 5.57 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.233e-06/1.233e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.136e-05/2.259e-05, allocations: 2.312 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.14/0.14, allocations: 41.08 MB / 314 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02217/0.1622, allocations: 11.15 MB / 325.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008556/0.1708, allocations: 381.9 kB / 325.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01317/0.1839, allocations: 9.368 MB / 334.9 MB, free: 4.625 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01229/0.1962, allocations: 3.778 MB / 338.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006265/0.2025, allocations: 2.462 MB / 341.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0158/0.2183, allocations: 14 MB / 355.2 MB, free: 324 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02264/0.2409, allocations: 17.46 MB / 372.6 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01345/0.2544, allocations: 10.92 MB / 383.6 MB, free: 3.754 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009803/0.2642, allocations: 7.567 MB / 391.1 MB, free: 12.17 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004236/0.2684, allocations: 1.984 MB / 393.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005853/0.2743, allocations: 2.386 MB / 395.5 MB, free: 7.801 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004121/0.2784, allocations: 4.169 MB / 399.7 MB, free: 3.621 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00887/0.2873, allocations: 5.251 MB / 404.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01745/0.3047, allocations: 12.85 MB / 417.8 MB, free: 1.473 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3047, allocations: 0 / 417.8 MB, free: 1.473 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3047, allocations: 0 / 417.8 MB, free: 1.473 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005426/0.3053, allocations: 0 / 417.8 MB, free: 1.473 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.02574/0.331, allocations: 16.5 MB / 434.3 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.3311, allocations: 11.98 kB / 434.3 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2396/0.5707, allocations: 7.998 MB / 442.3 MB, free: 73.25 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0125/0.5832, allocations: 7.931 MB / 450.2 MB, free: 72.61 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008022/0.584, allocations: 0.9312 MB / 451.1 MB, free: 72.58 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003452/0.5874, allocations: 1.231 MB / 452.4 MB, free: 72.57 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02538/0.6128, allocations: 10.55 MB / 462.9 MB, free: 71.38 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002839/0.6131, allocations: 28.11 kB / 463 MB, free: 71.36 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001049/0.6141, allocations: 0.5056 MB / 463.5 MB, free: 70.96 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003394/0.6145, allocations: 0.6553 MB / 464.1 MB, free: 70.9 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01766/0.6321, allocations: 5.549 MB / 469.7 MB, free: 66.95 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06664/0.6988, allocations: 49.03 MB / 0.5065 GB, free: 18.16 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/0.7092, allocations: 9.01 MB / 0.5153 GB, free: 10.82 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0029/0.7121, allocations: 1.72 MB / 0.517 GB, free: 9.086 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01027/0.7223, allocations: 5.802 MB / 0.5227 GB, free: 3.535 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.374e-05/0.7224, allocations: 80.16 kB / 0.5228 GB, free: 3.445 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 7.404e-06/0.7224, allocations: 0 / 0.5228 GB, free: 3.445 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.02211/0.7445, allocations: 10.89 MB / 0.5334 GB, free: 8.867 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.7446, allocations: 98.58 kB / 0.5335 GB, free: 8.758 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006486/0.7511, allocations: 4.609 MB / 0.538 GB, free: 4.145 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006181/0.7517, allocations: 93.7 kB / 0.5381 GB, free: 4.047 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00357/0.7553, allocations: 6.076 MB / 0.544 GB, free: 13.95 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001616/0.7569, allocations: 1.495 MB / 0.5455 GB, free: 12.47 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002086/0.759, allocations: 1.496 MB / 0.5469 GB, free: 10.96 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.7591, allocations: 480.8 kB / 0.5474 GB, free: 10.49 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002475/0.7616, allocations: 0.9895 MB / 0.5483 GB, free: 9.5 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004516/0.7661, allocations: 5.554 MB / 0.5538 GB, free: 2.016 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007443/0.7735, allocations: 7.224 MB / 0.5608 GB, free: 9.219 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/0.7736, allocations: 28 kB / 0.5609 GB, free: 9.191 MB / 426.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.0116/0.7852, allocations: 6.319 MB / 0.567 GB, free: 3.484 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.046e-05/0.7853, allocations: 51.12 kB / 0.5671 GB, free: 3.438 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/0.7855, allocations: 104 kB / 0.5672 GB, free: 3.336 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/0.7876, allocations: 0.8928 MB / 0.568 GB, free: 2.43 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004878/0.7925, allocations: 1.609 MB / 0.5696 GB, free: 0.9375 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009416/0.8019, allocations: 8.461 MB / 0.5779 GB, free: 8.184 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00486/0.8068, allocations: 395.7 kB / 0.5783 GB, free: 7.797 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001306/0.8081, allocations: 364 kB / 0.5786 GB, free: 7.441 MB / 442.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.003719/0.8118, allocations: 0.6478 MB / 0.5792 GB, free: 6.902 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001469/0.8132, allocations: 0.6606 MB / 0.5799 GB, free: 6.238 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009463/0.8227, allocations: 3.76 MB / 0.5836 GB, free: 2.457 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.742e-05/0.8228, allocations: 40 kB / 0.5836 GB, free: 2.418 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.248e-05/0.8228, allocations: 8 kB / 0.5836 GB, free: 2.41 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-05/0.8228, allocations: 23.91 kB / 0.5836 GB, free: 2.387 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1854/1.008, allocations: 11.81 MB / 0.5951 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/1.008, allocations: 4.719 kB / 0.5952 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/1.01, allocations: 0.763 MB / 0.5959 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/1.012, allocations: 0.7411 MB / 0.5966 GB, free: 104.9 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003106/1.012, allocations: 96.16 kB / 0.5967 GB, free: 104.9 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005863/1.018, allocations: 7.999 MB / 0.6045 GB, free: 99.5 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.018, allocations: 3.188 kB / 0.6045 GB, free: 99.5 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007923/1.026, allocations: 4.777 MB / 0.6092 GB, free: 98.79 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003169/1.029, allocations: 0.9408 MB / 0.6101 GB, free: 98.79 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009232/1.03, allocations: 72.81 kB / 0.6102 GB, free: 98.79 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/1.032, allocations: 209.4 kB / 0.6104 GB, free: 98.79 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004727/1.032, allocations: 301.6 kB / 0.6107 GB, free: 98.78 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001915/1.032, allocations: 120.6 kB / 0.6108 GB, free: 98.78 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002824/1.035, allocations: 2.158 MB / 0.6129 GB, free: 98.56 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.81e-07/1.035, allocations: 3.75 kB / 0.6129 GB, free: 98.56 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005/1.04, allocations: 1.925 MB / 0.6148 GB, free: 98.56 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.0005597/1.041, allocations: 264.2 kB / 0.615 GB, free: 98.47 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.007019/1.048, allocations: 4.764 MB / 0.6197 GB, free: 97.76 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.048, allocations: 0 / 0.6197 GB, free: 97.76 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002922/1.051, allocations: 2.334 MB / 0.622 GB, free: 97.12 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004698/1.055, allocations: 1.31 MB / 0.6232 GB, free: 97.02 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02728/1.083, allocations: 17.61 MB / 0.6404 GB, free: 87.88 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003686/1.086, allocations: 3.097 MB / 0.6435 GB, free: 86.36 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.00399/1.09, allocations: 1.859 MB / 0.6453 GB, free: 85.2 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008546/1.091, allocations: 414.9 kB / 0.6457 GB, free: 84.84 MB / 442.8 MB Notification: Performance of SimCode: time 2.565e-06/1.091, allocations: 0 / 0.6457 GB, free: 84.84 MB / 442.8 MB Notification: Performance of Templates: time 0.08834/1.18, allocations: 71.24 MB / 0.7152 GB, free: 18 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.63461695658043]