Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 190.8 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.91 kB / 370.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2138, allocations: 52.18 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04229/0.2561, allocations: 33.84 MB / 457 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.2769, allocations: 10.13 MB / 467.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005194/0.2821, allocations: 366 kB / 467.4 MB, free: 1.945 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.019/0.3011, allocations: 8.019 MB / 475.5 MB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01138/0.3125, allocations: 3.484 MB / 479 MB, free: 6.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007076/0.3196, allocations: 2.291 MB / 481.2 MB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01845/0.338, allocations: 12.97 MB / 494.2 MB, free: 7.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03355/0.3716, allocations: 17.12 MB / 0.4993 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01243/0.384, allocations: 6.974 MB / 0.5062 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01255/0.3965, allocations: 7.419 MB / 0.5134 GB, free: 7.398 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004508/0.401, allocations: 1.957 MB / 0.5153 GB, free: 5.441 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005913/0.407, allocations: 2.324 MB / 0.5176 GB, free: 3.117 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004099/0.4111, allocations: 3.955 MB / 0.5214 GB, free: 15.15 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008499/0.4196, allocations: 5.911 MB / 0.5272 GB, free: 9.219 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4127/0.8322, allocations: 26.03 MB / 0.5526 GB, free: 44.07 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.8322, allocations: 0 / 0.5526 GB, free: 44.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.8322, allocations: 2.188 kB / 0.5526 GB, free: 44.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006718/0.8329, allocations: 0 / 0.5526 GB, free: 44.07 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.05151/0.8844, allocations: 15.2 MB / 0.5675 GB, free: 37.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.8845, allocations: 12 kB / 0.5675 GB, free: 37.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03394/0.9184, allocations: 6.208 MB / 0.5735 GB, free: 34.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0212/0.9396, allocations: 8.075 MB / 0.5814 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001057/0.9407, allocations: 0.9034 MB / 0.5823 GB, free: 30.53 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00636/0.947, allocations: 1.195 MB / 0.5835 GB, free: 30.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04762/0.9946, allocations: 18.88 MB / 0.6019 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006075/0.9952, allocations: 23.47 kB / 0.6019 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004481/0.9997, allocations: 499.5 kB / 0.6024 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005592/1, allocations: 0.646 MB / 0.6031 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03469/1.035, allocations: 16.7 MB / 0.6194 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1132/1.148, allocations: 50.56 MB / 0.6687 GB, free: 9.133 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02127/1.169, allocations: 10.15 MB / 0.6787 GB, free: 0.6133 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007816/1.177, allocations: 3.367 MB / 0.6819 GB, free: 13.24 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0215/1.199, allocations: 7.593 MB / 0.6894 GB, free: 5.754 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001158/1.199, allocations: 69.31 kB / 0.6894 GB, free: 5.676 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 9.318e-06/1.199, allocations: 0 / 0.6894 GB, free: 5.676 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.0459/1.245, allocations: 17.2 MB / 0.7062 GB, free: 4.512 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.016e-05/1.245, allocations: 94.45 kB / 0.7063 GB, free: 4.406 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01185/1.257, allocations: 4.77 MB / 0.711 GB, free: 15.63 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009533/1.258, allocations: 93.7 kB / 0.7111 GB, free: 15.53 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005356/1.263, allocations: 5.634 MB / 0.7166 GB, free: 9.883 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002388/1.265, allocations: 1.422 MB / 0.7179 GB, free: 8.48 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003718/1.269, allocations: 1.323 MB / 0.7192 GB, free: 7.148 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001392/1.269, allocations: 305.1 kB / 0.7195 GB, free: 6.848 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005163/1.274, allocations: 2.902 MB / 0.7224 GB, free: 3.941 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008465/1.283, allocations: 5.93 MB / 0.7282 GB, free: 12.64 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01452/1.297, allocations: 9.438 MB / 0.7374 GB, free: 2.184 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001349/1.298, allocations: 28 kB / 0.7374 GB, free: 2.156 MB / 0.5607 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02122/1.319, allocations: 9.814 MB / 0.747 GB, free: 8.898 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/1.319, allocations: 51.39 kB / 0.747 GB, free: 8.852 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002176/1.319, allocations: 104 kB / 0.7471 GB, free: 8.75 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002724/1.322, allocations: 0.9433 MB / 0.748 GB, free: 7.797 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006639/1.328, allocations: 1.586 MB / 0.7496 GB, free: 6.328 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2936/1.622, allocations: 9.677 MB / 0.759 GB, free: 205.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006125/1.628, allocations: 403 kB / 0.7594 GB, free: 205.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.63, allocations: 357.1 kB / 0.7598 GB, free: 205.5 MB / 0.5763 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.007394/1.637, allocations: 4.25 MB / 0.7639 GB, free: 205.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/1.638, allocations: 0.5018 MB / 0.7644 GB, free: 205.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009954/1.648, allocations: 6.428 MB / 0.7707 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/1.648, allocations: 42.62 kB / 0.7707 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/1.648, allocations: 8.562 kB / 0.7707 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.699e-05/1.648, allocations: 24.42 kB / 0.7708 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02137/1.67, allocations: 13.26 MB / 0.7837 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/1.67, allocations: 3.469 kB / 0.7837 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003037/1.673, allocations: 0.7494 MB / 0.7844 GB, free: 198.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/1.675, allocations: 0.7802 MB / 0.7852 GB, free: 198.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000347/1.675, allocations: 88.53 kB / 0.7853 GB, free: 198.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008584/1.684, allocations: 8.847 MB / 0.7939 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/1.684, allocations: 3.875 kB / 0.7939 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01223/1.696, allocations: 9.463 MB / 0.8032 GB, free: 184.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002849/1.699, allocations: 0.9808 MB / 0.8041 GB, free: 184.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008878/1.7, allocations: 76 kB / 0.8042 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002521/1.702, allocations: 215.5 kB / 0.8044 GB, free: 184 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005566/1.703, allocations: 283.5 kB / 0.8047 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002669/1.703, allocations: 111.8 kB / 0.8048 GB, free: 183.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004813/1.708, allocations: 3.046 MB / 0.8078 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1e-07/1.708, allocations: 0 / 0.8078 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007185/1.715, allocations: 1.875 MB / 0.8096 GB, free: 179.4 MB / 0.5763 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.0007561/1.716, allocations: 259.9 kB / 0.8098 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01074/1.727, allocations: 7.206 MB / 0.8169 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.727, allocations: 4 kB / 0.8169 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00454/1.731, allocations: 3.172 MB / 0.82 GB, free: 170 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005328/1.737, allocations: 1.152 MB / 0.8211 GB, free: 169.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03235/1.769, allocations: 20.11 MB / 0.8407 GB, free: 149.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007007/1.776, allocations: 6.922 MB / 0.8475 GB, free: 142.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005232/1.781, allocations: 2.111 MB / 0.8496 GB, free: 140.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/1.782, allocations: 387.4 kB / 0.8499 GB, free: 140.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.202e-06/1.782, allocations: 0 / 0.8499 GB, free: 140.1 MB / 0.5763 GB Notification: Performance of Templates: time 0.1114/1.894, allocations: 76.57 MB / 0.9247 GB, free: 64.46 MB / 0.5763 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.704774901270866]