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.001393/0.001393, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001506/0.001506, allocations: 217.5 kB / 24.5 MB, free: 4.133 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.46/1.46, allocations: 230.5 MB / 258.1 MB, free: 8.012 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.002078/0.002078, allocations: 67.88 kB / 379.1 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2479, allocations: 53.41 MB / 432.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0479/0.2958, allocations: 40.32 MB / 472.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02427/0.32, allocations: 10.71 MB / 483.5 MB, free: 3.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007718/0.3277, allocations: 370 kB / 483.9 MB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02175/0.3495, allocations: 8.654 MB / 492.5 MB, free: 10.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01264/0.3621, allocations: 3.562 MB / 496.1 MB, free: 6.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007816/0.3699, allocations: 2.433 MB / 498.5 MB, free: 4.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01936/0.3893, allocations: 13.05 MB / 0.4996 GB, free: 7.371 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.035/0.4243, allocations: 17.36 MB / 0.5166 GB, free: 5.855 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01215/0.4364, allocations: 6.974 MB / 0.5234 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01411/0.4506, allocations: 7.931 MB / 0.5311 GB, free: 6.906 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005126/0.4557, allocations: 1.949 MB / 0.533 GB, free: 4.957 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006959/0.4626, allocations: 2.378 MB / 0.5353 GB, free: 2.578 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2303/0.693, allocations: 3.971 MB / 0.5392 GB, free: 31.3 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01531/0.7083, allocations: 7.563 MB / 0.5466 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03128/0.7396, allocations: 25.98 MB / 0.572 GB, free: 24.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.7396, allocations: 0 / 0.572 GB, free: 24.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.7396, allocations: 0 / 0.572 GB, free: 24.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007402/0.7403, allocations: 0 / 0.572 GB, free: 24.45 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.0466/0.7869, allocations: 15.25 MB / 0.5869 GB, free: 14.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.787, allocations: 7.188 kB / 0.5869 GB, free: 14.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03243/0.8194, allocations: 6.127 MB / 0.5929 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01785/0.8372, allocations: 8.124 MB / 0.6008 GB, free: 6.852 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007419/0.838, allocations: 0.9034 MB / 0.6017 GB, free: 6.258 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005211/0.8432, allocations: 1.191 MB / 0.6028 GB, free: 5.078 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05492/0.8981, allocations: 18.69 MB / 0.6211 GB, free: 2.328 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005651/0.8987, allocations: 19.89 kB / 0.6211 GB, free: 2.309 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005169/0.9038, allocations: 0.494 MB / 0.6216 GB, free: 1.824 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007942/0.9046, allocations: 0.6382 MB / 0.6222 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04309/0.9477, allocations: 16.8 MB / 0.6386 GB, free: 380 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1319/1.08, allocations: 57.26 MB / 0.6945 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02069/1.1, allocations: 10.37 MB / 0.7047 GB, free: 14.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007592/1.108, allocations: 3.405 MB / 0.708 GB, free: 10.77 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02331/1.131, allocations: 8.546 MB / 0.7163 GB, free: 2.328 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.792e-05/1.131, allocations: 73.25 kB / 0.7164 GB, free: 2.246 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 6.062e-06/1.131, allocations: 0 / 0.7164 GB, free: 2.246 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04769/1.179, allocations: 17.28 MB / 0.7333 GB, free: 1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/1.179, allocations: 94.45 kB / 0.7334 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/1.191, allocations: 5.042 MB / 0.7383 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009717/1.192, allocations: 85.7 kB / 0.7384 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.005311/1.198, allocations: 5.647 MB / 0.7439 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002232/1.2, allocations: 1.415 MB / 0.7453 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004667/1.204, allocations: 1.334 MB / 0.7466 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001542/1.205, allocations: 309.1 kB / 0.7469 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005734/1.21, allocations: 2.906 MB / 0.7497 GB, free: 156 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2603/1.471, allocations: 5.878 MB / 0.7554 GB, free: 199.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/1.481, allocations: 9.454 MB / 0.7647 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001826/1.482, allocations: 31.89 kB / 0.7647 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01614/1.498, allocations: 9.877 MB / 0.7744 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.498, allocations: 46.72 kB / 0.7744 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/1.498, allocations: 101.2 kB / 0.7745 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/1.5, allocations: 0.9325 MB / 0.7754 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005717/1.506, allocations: 1.59 MB / 0.777 GB, free: 191.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/1.516, allocations: 9.881 MB / 0.7866 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006805/1.523, allocations: 408.8 kB / 0.787 GB, free: 184.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001521/1.525, allocations: 358.3 kB / 0.7873 GB, free: 184.7 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.008654/1.533, allocations: 4.248 MB / 0.7915 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.535, allocations: 0.5383 MB / 0.792 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/1.545, allocations: 6.463 MB / 0.7983 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/1.545, allocations: 40 kB / 0.7984 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.545, allocations: 11.94 kB / 0.7984 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.549e-05/1.545, allocations: 19.08 kB / 0.7984 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02981/1.575, allocations: 15.75 MB / 0.8138 GB, free: 165.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/1.575, allocations: 4 kB / 0.8138 GB, free: 165.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003338/1.578, allocations: 0.7493 MB / 0.8145 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002046/1.58, allocations: 0.7872 MB / 0.8153 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006429/1.581, allocations: 91.3 kB / 0.8154 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008632/1.59, allocations: 9.056 MB / 0.8242 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.59, allocations: 0 / 0.8242 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01285/1.602, allocations: 9.523 MB / 0.8335 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003003/1.605, allocations: 1.034 MB / 0.8345 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/1.606, allocations: 68 kB / 0.8346 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002465/1.609, allocations: 219.8 kB / 0.8348 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004825/1.609, allocations: 286.5 kB / 0.8351 GB, free: 145.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002326/1.61, allocations: 120 kB / 0.8352 GB, free: 145 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004914/1.615, allocations: 3.362 MB / 0.8385 GB, free: 141.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/1.615, allocations: 0 / 0.8385 GB, free: 141.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007268/1.622, allocations: 1.88 MB / 0.8403 GB, free: 139.8 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.0007522/1.623, allocations: 266.3 kB / 0.8406 GB, free: 139.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01125/1.634, allocations: 7.211 MB / 0.8476 GB, free: 132.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/1.634, allocations: 0 / 0.8476 GB, free: 132.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005082/1.639, allocations: 3.183 MB / 0.8507 GB, free: 129.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006516/1.645, allocations: 1.299 MB / 0.852 GB, free: 127.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03486/1.68, allocations: 19.83 MB / 0.8713 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007555/1.688, allocations: 7.113 MB / 0.8783 GB, free: 100.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002334/1.69, allocations: 483.3 kB / 0.8787 GB, free: 100.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.834e-06/1.69, allocations: 0 / 0.8787 GB, free: 100.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.9121/2.602, allocations: 464.4 MB / 1.332 GB, free: 91.26 MB / 0.5919 GB " [Timeout remaining time 657] 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/jenkins1/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/jenkins1/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: 23.75675409194082]