Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 51.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3028, allocations: 53.37 MB / 432.4 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03699/0.3397, allocations: 13.78 MB / 446.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0191/0.3588, allocations: 5.066 MB / 451.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003427/0.3623, allocations: 127.2 kB / 451.3 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003627/0.3659, allocations: 1.068 MB / 452.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004772/0.3707, allocations: 1.274 MB / 453.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002913/0.3736, allocations: 0.9033 MB / 454.6 MB, free: 416 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005743/0.3793, allocations: 3.647 MB / 458.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003452/0.3828, allocations: 1.842 MB / 460.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00304/0.3858, allocations: 1.795 MB / 461.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003547/0.3894, allocations: 2.008 MB / 463.9 MB, free: 7.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009057/0.3903, allocations: 476 kB / 464.3 MB, free: 6.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.3919, allocations: 0.6833 MB / 465 MB, free: 5.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.3932, allocations: 1.157 MB / 466.2 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002479/0.3957, allocations: 1.622 MB / 467.8 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008482/0.4041, allocations: 6.334 MB / 474.1 MB, free: 12.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.4042, allocations: 7.984 kB / 474.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4042, allocations: 0 / 474.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001459/0.4043, allocations: 4 kB / 474.1 MB, free: 12.71 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01043/0.4147, allocations: 4.283 MB / 478.4 MB, free: 8.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.4148, allocations: 8.031 kB / 478.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002911/0.4177, allocations: 0.6271 MB / 479.1 MB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004783/0.4225, allocations: 2.21 MB / 481.3 MB, free: 5.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.4227, allocations: 234.7 kB / 481.5 MB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005538/0.4232, allocations: 324.1 kB / 481.8 MB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008307/0.4316, allocations: 4.126 MB / 485.9 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.753e-05/0.4316, allocations: 7.891 kB / 486 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002992/0.4319, allocations: 128 kB / 486.1 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001768/0.4321, allocations: 146.2 kB / 486.2 MB, free: 456 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008809/0.4409, allocations: 3.382 MB / 489.6 MB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02474/0.4657, allocations: 11.31 MB / 0.4892 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003932/0.4696, allocations: 1.757 MB / 0.4909 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001827/0.4714, allocations: 0.9336 MB / 0.4918 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005253/0.4767, allocations: 2.152 MB / 0.4939 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.863e-05/0.4767, allocations: 43.56 kB / 0.4939 GB, free: 12.47 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.366e-06/0.4767, allocations: 4 kB / 0.4939 GB, free: 12.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01245/0.4892, allocations: 5.803 MB / 0.4996 GB, free: 6.637 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.4892, allocations: 68.66 kB / 0.4997 GB, free: 6.559 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002834/0.4921, allocations: 1.76 MB / 0.5014 GB, free: 4.797 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001765/0.4922, allocations: 49.7 kB / 0.5014 GB, free: 4.742 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.4935, allocations: 1.567 MB / 0.503 GB, free: 3.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005184/0.494, allocations: 0.5074 MB / 0.5035 GB, free: 2.648 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005473/0.4946, allocations: 339.4 kB / 0.5038 GB, free: 2.309 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4947, allocations: 301.1 kB / 0.5041 GB, free: 2.012 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.4961, allocations: 0.7691 MB / 0.5048 GB, free: 1.242 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/0.4979, allocations: 1.404 MB / 0.5062 GB, free: 15.56 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003366/0.5013, allocations: 2.316 MB / 0.5085 GB, free: 12.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.5013, allocations: 4 kB / 0.5085 GB, free: 12.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004464/0.5058, allocations: 2.474 MB / 0.5109 GB, free: 10.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.5058, allocations: 12 kB / 0.5109 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/0.5058, allocations: 20 kB / 0.5109 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000381/0.5062, allocations: 127.1 kB / 0.511 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/0.508, allocations: 479.2 kB / 0.5115 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.5093, allocations: 1.287 MB / 0.5128 GB, free: 8.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/0.5108, allocations: 119.8 kB / 0.5129 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/0.511, allocations: 79.98 kB / 0.5129 GB, free: 8.262 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001866/0.5129, allocations: 0.985 MB / 0.5139 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004163/0.5133, allocations: 198.7 kB / 0.5141 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003539/0.5168, allocations: 1.945 MB / 0.516 GB, free: 5.105 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.5168, allocations: 20 kB / 0.516 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.5168, allocations: 3.938 kB / 0.516 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.5169, allocations: 7.969 kB / 0.516 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008169/0.525, allocations: 4.235 MB / 0.5202 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.525, allocations: 3.984 kB / 0.5202 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/0.5264, allocations: 311.5 kB / 0.5205 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.5267, allocations: 102.4 kB / 0.5206 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-05/0.5268, allocations: 31.98 kB / 0.5206 GB, free: 320 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.5279, allocations: 1.237 MB / 0.5218 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5279, allocations: 4 kB / 0.5218 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004981/0.5329, allocations: 3.083 MB / 0.5248 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/0.5341, allocations: 374.8 kB / 0.5252 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/0.5344, allocations: 31.94 kB / 0.5252 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009482/0.5353, allocations: 79.91 kB / 0.5253 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.5355, allocations: 93.12 kB / 0.5254 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.27e-05/0.5356, allocations: 40 kB / 0.5254 GB, free: 11.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001888/0.5375, allocations: 1.156 MB / 0.5265 GB, free: 10.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5375, allocations: 0 / 0.5265 GB, free: 10.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001792/0.5393, allocations: 0.5351 MB / 0.5271 GB, free: 9.543 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0004236/0.5397, allocations: 168.5 kB / 0.5272 GB, free: 9.371 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003795/0.5435, allocations: 1.98 MB / 0.5291 GB, free: 7.375 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.5435, allocations: 3.938 kB / 0.5292 GB, free: 7.371 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.5451, allocations: 0.9531 MB / 0.5301 GB, free: 6.398 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.5475, allocations: 474.3 kB / 0.5305 GB, free: 5.945 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.5579, allocations: 5.711 MB / 0.5361 GB, free: 168 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2148/0.7726, allocations: 1.665 MB / 0.5377 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008478/0.7735, allocations: 161.9 kB / 0.5379 GB, free: 101.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7735, allocations: 3.812 kB / 0.5379 GB, free: 101.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07345/0.8469, allocations: 87.05 MB / 0.6229 GB, free: 22.46 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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: 12.707422817125916]