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.0008374/0.0008374, allocations: 83.69 kB / 21.44 MB, free: 3.113 MB / 18.57 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.003417/0.003417, allocations: 153.4 kB / 24.69 MB, free: 8.906 MB / 18.57 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 0.9067/0.9067, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.543e-06/1.543e-06, allocations: 0 / 325.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.421e-05/2.575e-05, allocations: 6.281 kB / 325.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01131/0.01134, allocations: 13.8 MB / 339.7 MB, free: 1.527 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008487/0.01982, allocations: 5.093 MB / 344.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002326/0.02215, allocations: 123.2 kB / 344.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002466/0.02462, allocations: 1.075 MB / 346 MB, free: 11.21 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003022/0.02764, allocations: 1.304 MB / 347.3 MB, free: 9.895 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001459/0.0291, allocations: 0.9116 MB / 348.2 MB, free: 8.98 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003182/0.03228, allocations: 3.805 MB / 352 MB, free: 5.16 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.03429, allocations: 1.842 MB / 353.8 MB, free: 3.25 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002732/0.03702, allocations: 2.616 MB / 356.4 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.03864, allocations: 1.738 MB / 358.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004061/0.03905, allocations: 480 kB / 358.6 MB, free: 14.42 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009515/0.04, allocations: 0.6909 MB / 359.3 MB, free: 13.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009095/0.04091, allocations: 1.176 MB / 360.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.04202, allocations: 1.376 MB / 361.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004718/0.04674, allocations: 6.361 MB / 368.2 MB, free: 4.789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.04674, allocations: 0 / 368.2 MB, free: 4.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.04674, allocations: 0 / 368.2 MB, free: 4.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000109/0.04685, allocations: 0 / 368.2 MB, free: 4.789 MB / 330.7 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.006412/0.05326, allocations: 4.244 MB / 372.5 MB, free: 496 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.05331, allocations: 8.031 kB / 372.5 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001598/0.0549, allocations: 0.6388 MB / 373.1 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/0.05793, allocations: 2.209 MB / 375.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.05805, allocations: 242.7 kB / 375.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003263/0.05838, allocations: 316.3 kB / 375.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005164/0.06354, allocations: 4.119 MB / 380 MB, free: 8.832 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.547e-05/0.06361, allocations: 15.89 kB / 380 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002007/0.06381, allocations: 123.9 kB / 380.1 MB, free: 8.695 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.06392, allocations: 150.2 kB / 380.3 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004316/0.06824, allocations: 3.386 MB / 383.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01269/0.08092, allocations: 11.31 MB / 395 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/0.08303, allocations: 1.745 MB / 396.7 MB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.08404, allocations: 0.9337 MB / 397.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003048/0.08709, allocations: 2.145 MB / 399.8 MB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.08712, allocations: 55.55 kB / 399.9 MB, free: 4.574 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.355e-06/0.08712, allocations: 0 / 399.9 MB, free: 4.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.007887/0.09501, allocations: 5.796 MB / 405.7 MB, free: 14.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.09506, allocations: 68.72 kB / 405.7 MB, free: 14.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002217/0.09727, allocations: 1.748 MB / 407.5 MB, free: 12.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.125e-05/0.09737, allocations: 53.64 kB / 407.5 MB, free: 12.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007923/0.09816, allocations: 1.567 MB / 409.1 MB, free: 11.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000333/0.09849, allocations: 0.4996 MB / 409.6 MB, free: 10.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003356/0.09883, allocations: 339.3 kB / 409.9 MB, free: 10.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.09891, allocations: 301.1 kB / 410.2 MB, free: 10.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000866/0.09977, allocations: 0.773 MB / 411 MB, free: 9.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.1009, allocations: 1.4 MB / 412.4 MB, free: 7.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.103, allocations: 2.32 MB / 414.7 MB, free: 5.098 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.48e-05/0.1031, allocations: 8 kB / 414.7 MB, free: 5.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003031/0.1061, allocations: 2.466 MB / 417.2 MB, free: 2.605 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.719e-05/0.1061, allocations: 12 kB / 417.2 MB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.1062, allocations: 20.75 kB / 417.2 MB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000279/0.1064, allocations: 126.5 kB / 417.3 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009957/0.1074, allocations: 479.2 kB / 417.8 MB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.1085, allocations: 1.287 MB / 419.1 MB, free: 0.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.1096, allocations: 119.8 kB / 419.2 MB, free: 476 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.1097, allocations: 80 kB / 419.3 MB, free: 396 kB / 378.7 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.00167/0.1114, allocations: 0.989 MB / 420.3 MB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002778/0.1116, allocations: 206.8 kB / 420.5 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.1138, allocations: 1.949 MB / 422.4 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.1138, allocations: 12 kB / 422.4 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1138, allocations: 0 / 422.4 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.1139, allocations: 7.969 kB / 422.5 MB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005468/0.1193, allocations: 4.239 MB / 426.7 MB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1193, allocations: 0 / 426.7 MB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007268/0.1201, allocations: 307.6 kB / 427 MB, free: 8.574 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001987/0.1203, allocations: 98.47 kB / 427.1 MB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.82e-05/0.1203, allocations: 36.14 kB / 427.1 MB, free: 8.434 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00071/0.121, allocations: 1.244 MB / 428.4 MB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.121, allocations: 0 / 428.4 MB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003215/0.1243, allocations: 3.071 MB / 431.4 MB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007201/0.125, allocations: 374.7 kB / 431.8 MB, free: 3.594 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.1251, allocations: 23.98 kB / 431.8 MB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005436/0.1257, allocations: 83.84 kB / 431.9 MB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.1258, allocations: 97.08 kB / 432 MB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.357e-05/0.1259, allocations: 39.98 kB / 432 MB, free: 3.355 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00144/0.1273, allocations: 1.156 MB / 433.2 MB, free: 2.207 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1273, allocations: 0 / 433.2 MB, free: 2.207 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001482/0.1288, allocations: 0.5351 MB / 433.7 MB, free: 1.672 MB / 394.7 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.0003423/0.1291, allocations: 181.3 kB / 433.9 MB, free: 1.484 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002451/0.1316, allocations: 1.983 MB / 435.9 MB, free: 15.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.1316, allocations: 4 kB / 435.9 MB, free: 15.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.1326, allocations: 0.9573 MB / 436.9 MB, free: 14.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.134, allocations: 477.8 kB / 437.3 MB, free: 14.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007626/0.1416, allocations: 5.621 MB / 442.9 MB, free: 8.359 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/0.143, allocations: 1.663 MB / 444.6 MB, free: 6.664 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005787/0.1436, allocations: 164.5 kB / 444.8 MB, free: 6.504 MB / 410.7 MB Notification: Performance of SimCode: time 1.683e-06/0.1436, allocations: 0 / 444.8 MB, free: 6.504 MB / 410.7 MB Notification: Performance of Templates: time 0.2283/0.3719, allocations: 86.99 MB / 0.5193 GB, free: 40.54 MB / 410.7 MB " [Timeout remaining time 660] 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/jenkins/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/jenkins/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: 7.813940356485546]