Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001336/0.001336, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 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.001744/0.001744, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 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 1.433/1.433, allocations: 230.3 MB / 258 MB, free: 8.238 MB / 206.1 MB " [Timeout remaining time 178] 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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.89 kB / 378.8 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2244, allocations: 53.37 MB / 432.2 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04818/0.2726, allocations: 40.32 MB / 472.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02355/0.2962, allocations: 10.7 MB / 483.2 MB, free: 3.797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006693/0.3029, allocations: 370 kB / 483.6 MB, free: 3.434 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02119/0.3241, allocations: 8.666 MB / 492.3 MB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01348/0.3375, allocations: 3.558 MB / 495.8 MB, free: 7.168 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007431/0.345, allocations: 2.445 MB / 498.3 MB, free: 4.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01861/0.3636, allocations: 13.04 MB / 0.4993 GB, free: 7.652 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03054/0.3941, allocations: 16.21 MB / 0.5151 GB, free: 7.301 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01251/0.4066, allocations: 6.974 MB / 0.522 GB, free: 316 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01692/0.4236, allocations: 7.935 MB / 0.5297 GB, free: 8.344 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006219/0.4298, allocations: 1.949 MB / 0.5316 GB, free: 6.395 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008209/0.438, allocations: 2.378 MB / 0.5339 GB, free: 4.02 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006617/0.4446, allocations: 3.97 MB / 0.5378 GB, free: 40 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3028/0.7474, allocations: 7.564 MB / 0.5452 GB, free: 29.72 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04151/0.7889, allocations: 25.97 MB / 0.5706 GB, free: 23.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.7889, allocations: 0 / 0.5706 GB, free: 23.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7889, allocations: 0 / 0.5706 GB, free: 23.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001002/0.79, allocations: 0 / 0.5706 GB, free: 23.86 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.06005/0.85, allocations: 15.25 MB / 0.5855 GB, free: 14.76 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.85, allocations: 8.344 kB / 0.5855 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03656/0.8866, allocations: 6.131 MB / 0.5914 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01888/0.9055, allocations: 8.124 MB / 0.5994 GB, free: 6.891 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000861/0.9064, allocations: 0.9034 MB / 0.6003 GB, free: 6.484 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00724/0.9136, allocations: 1.193 MB / 0.6014 GB, free: 5.457 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06137/0.975, allocations: 18.69 MB / 0.6197 GB, free: 2.707 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005228/0.9755, allocations: 27.17 kB / 0.6197 GB, free: 2.684 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005305/0.9808, allocations: 0.4926 MB / 0.6202 GB, free: 2.203 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007786/0.9816, allocations: 0.6421 MB / 0.6208 GB, free: 1.559 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04931/1.031, allocations: 16.8 MB / 0.6372 GB, free: 0.75 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1427/1.174, allocations: 57.25 MB / 0.6931 GB, free: 7.262 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02108/1.195, allocations: 10.37 MB / 0.7033 GB, free: 14.55 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00682/1.201, allocations: 3.406 MB / 0.7066 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01864/1.22, allocations: 8.544 MB / 0.7149 GB, free: 2.699 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.155e-05/1.22, allocations: 81.25 kB / 0.715 GB, free: 2.609 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 4.548e-06/1.22, allocations: 0 / 0.715 GB, free: 2.609 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04395/1.264, allocations: 17.28 MB / 0.7319 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/1.264, allocations: 97.94 kB / 0.732 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009312/1.274, allocations: 5.042 MB / 0.7369 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.000897/1.274, allocations: 85.7 kB / 0.737 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004967/1.279, allocations: 5.645 MB / 0.7425 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001978/1.281, allocations: 1.415 MB / 0.7439 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00249/1.284, allocations: 1.331 MB / 0.7452 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001658/1.284, allocations: 305.1 kB / 0.7455 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005388/1.289, allocations: 2.91 MB / 0.7483 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2527/1.542, allocations: 5.877 MB / 0.754 GB, free: 200.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.553, allocations: 9.458 MB / 0.7633 GB, free: 195.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001968/1.553, allocations: 28.62 kB / 0.7633 GB, free: 195.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01747/1.571, allocations: 9.872 MB / 0.7729 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/1.571, allocations: 51.36 kB / 0.773 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/1.571, allocations: 98.75 kB / 0.7731 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/1.573, allocations: 0.9334 MB / 0.774 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005358/1.578, allocations: 1.593 MB / 0.7756 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.589, allocations: 9.895 MB / 0.7852 GB, free: 186 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005599/1.594, allocations: 401.1 kB / 0.7856 GB, free: 185.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009977/1.595, allocations: 354 kB / 0.7859 GB, free: 185.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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.006814/1.602, allocations: 4.246 MB / 0.7901 GB, free: 183.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/1.603, allocations: 0.5406 MB / 0.7906 GB, free: 183.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009721/1.613, allocations: 6.459 MB / 0.7969 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/1.613, allocations: 47.61 kB / 0.797 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/1.613, allocations: 11.94 kB / 0.797 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.134e-05/1.613, allocations: 19.03 kB / 0.797 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02618/1.639, allocations: 15.74 MB / 0.8124 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/1.639, allocations: 4 kB / 0.8124 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003019/1.642, allocations: 0.7511 MB / 0.8131 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001942/1.644, allocations: 0.7892 MB / 0.8139 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002352/1.644, allocations: 83.31 kB / 0.814 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008535/1.653, allocations: 9.051 MB / 0.8228 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.653, allocations: 7.969 kB / 0.8228 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01262/1.665, allocations: 9.521 MB / 0.8321 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002858/1.668, allocations: 1.036 MB / 0.8331 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.669, allocations: 69.55 kB / 0.8332 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002634/1.672, allocations: 219.8 kB / 0.8334 GB, free: 146.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005248/1.673, allocations: 286.5 kB / 0.8337 GB, free: 145.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002444/1.673, allocations: 116 kB / 0.8338 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004832/1.678, allocations: 3.363 MB / 0.8371 GB, free: 142.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/1.678, allocations: 0 / 0.8371 GB, free: 142.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006983/1.685, allocations: 1.882 MB / 0.8389 GB, free: 140.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.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 (368): * Single equations (assignments): 363 * 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.0007773/1.685, allocations: 272.1 kB / 0.8392 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.696, allocations: 7.215 MB / 0.8462 GB, free: 133 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.696, allocations: 0 / 0.8462 GB, free: 133 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005573/1.702, allocations: 3.179 MB / 0.8493 GB, free: 129.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006298/1.708, allocations: 1.296 MB / 0.8506 GB, free: 128.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02973/1.738, allocations: 20.1 MB / 0.8702 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006199/1.744, allocations: 7.332 MB / 0.8774 GB, free: 101 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00522/1.749, allocations: 2.156 MB / 0.8795 GB, free: 98.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.75, allocations: 423.3 kB / 0.8799 GB, free: 98.38 MB / 0.5762 GB Notification: Performance of SimCode: time 8.62e-07/1.75, allocations: 0 / 0.8799 GB, free: 98.38 MB / 0.5762 GB Notification: Performance of Templates: time 0.1223/1.873, allocations: 78.42 MB / 0.9565 GB, free: 20.65 MB / 0.5762 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.88182370364666]