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.001419/0.001419, allocations: 84.08 kB / 20.68 MB, free: 1.027 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.001586/0.001586, allocations: 171.2 kB / 23.96 MB, free: 4.148 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.421/1.421, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.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 1.793e-06/1.793e-06, allocations: 0 / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.38e-05, allocations: 2.281 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01987/0.01989, allocations: 13.8 MB / 338.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.03275, allocations: 5.096 MB / 344 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003816/0.03657, allocations: 123.2 kB / 344.1 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004022/0.04059, allocations: 1.075 MB / 345.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005039/0.04563, allocations: 1.316 MB / 346.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002873/0.0485, allocations: 0.9061 MB / 347.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006216/0.05472, allocations: 3.801 MB / 351.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004037/0.05875, allocations: 1.846 MB / 353.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005959/0.06471, allocations: 2.612 MB / 355.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004945/0.06966, allocations: 1.742 MB / 357.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001809/0.07147, allocations: 476 kB / 357.9 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003069/0.07454, allocations: 0.6987 MB / 358.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002318/0.07685, allocations: 1.172 MB / 359.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004164/0.08102, allocations: 1.376 MB / 361.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.0931, allocations: 6.364 MB / 367.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.09311, allocations: 0 / 367.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.09311, allocations: 0 / 367.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002029/0.09331, allocations: 0 / 367.5 MB, free: 10.55 MB / 334.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.01209/0.1054, allocations: 4.244 MB / 371.7 MB, free: 6.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.1054, allocations: 8.031 kB / 371.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003207/0.1087, allocations: 0.6349 MB / 372.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004893/0.1135, allocations: 2.213 MB / 374.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/0.1138, allocations: 234.7 kB / 374.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006575/0.1144, allocations: 316.3 kB / 375.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007799/0.1222, allocations: 4.126 MB / 379.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.091e-05/0.1223, allocations: 11.89 kB / 379.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003119/0.1226, allocations: 128 kB / 379.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001624/0.1228, allocations: 146.2 kB / 379.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006043/0.1288, allocations: 3.382 MB / 382.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01927/0.1481, allocations: 11.31 MB / 394.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003728/0.1518, allocations: 1.752 MB / 396 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.1536, allocations: 0.9376 MB / 396.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004523/0.1581, allocations: 2.148 MB / 399.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.1582, allocations: 43.56 kB / 399.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=108): time 2.695e-06/0.1582, allocations: 0 / 399.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=142): time 0.01231/0.1705, allocations: 5.8 MB / 404.9 MB, free: 4.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.1705, allocations: 72.59 kB / 405 MB, free: 4.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.1731, allocations: 1.76 MB / 406.7 MB, free: 2.672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.1732, allocations: 49.7 kB / 406.8 MB, free: 2.617 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.1745, allocations: 1.567 MB / 408.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004517/0.1749, allocations: 0.4957 MB / 408.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005298/0.1755, allocations: 331.4 kB / 409.2 MB, free: 212 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1756, allocations: 305.1 kB / 409.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.1769, allocations: 0.7691 MB / 410.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00214/0.1791, allocations: 1.4 MB / 411.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003387/0.1824, allocations: 2.316 MB / 413.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.284e-05/0.1825, allocations: 8 kB / 414 MB, free: 10.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004468/0.1869, allocations: 2.479 MB / 416.4 MB, free: 8.375 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.187, allocations: 16 kB / 416.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.187, allocations: 16 kB / 416.5 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003711/0.1873, allocations: 122.5 kB / 416.6 MB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.1892, allocations: 483.6 kB / 417.1 MB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.1904, allocations: 1.283 MB / 418.3 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.1919, allocations: 112 kB / 418.4 MB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.1921, allocations: 83.98 kB / 418.5 MB, free: 6.164 MB / 382.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.00189/0.194, allocations: 0.9889 MB / 419.5 MB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004027/0.1944, allocations: 202.7 kB / 419.7 MB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003516/0.1979, allocations: 1.949 MB / 421.7 MB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.1979, allocations: 12 kB / 421.7 MB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.1979, allocations: 7.984 kB / 421.7 MB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.1979, allocations: 3.984 kB / 421.7 MB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007474/0.2054, allocations: 4.239 MB / 425.9 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.2054, allocations: 4 kB / 425.9 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/0.2068, allocations: 303.8 kB / 426.2 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003114/0.2071, allocations: 102.5 kB / 426.3 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.482e-05/0.2072, allocations: 27.98 kB / 426.4 MB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.2083, allocations: 1.256 MB / 427.6 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2083, allocations: 0 / 427.6 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004858/0.2132, allocations: 3.079 MB / 430.7 MB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008754/0.214, allocations: 366.6 kB / 431.1 MB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002406/0.2143, allocations: 24 kB / 431.1 MB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009514/0.2152, allocations: 84.06 kB / 431.2 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.2154, allocations: 97.06 kB / 431.3 MB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-05/0.2155, allocations: 36 kB / 431.3 MB, free: 9.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00181/0.2173, allocations: 1.16 MB / 432.4 MB, free: 7.977 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2173, allocations: 0 / 432.4 MB, free: 7.977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001643/0.219, allocations: 0.5351 MB / 433 MB, free: 7.441 MB / 398.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.0003392/0.2193, allocations: 170.9 kB / 433.1 MB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003438/0.2227, allocations: 1.983 MB / 435.1 MB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.2227, allocations: 0 / 435.1 MB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.2244, allocations: 0.954 MB / 436.1 MB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.2268, allocations: 492.7 kB / 436.6 MB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.2372, allocations: 5.588 MB / 442.2 MB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002153/0.2393, allocations: 1.718 MB / 443.9 MB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001608/0.2409, allocations: 0.4926 MB / 444.4 MB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004859/0.2414, allocations: 152.5 kB / 444.5 MB, free: 11.77 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2414, allocations: 0 / 444.5 MB, free: 11.77 MB / 414.1 MB Notification: Performance of Templates: time 0.04885/0.2903, allocations: 24.68 MB / 469.2 MB, free: 3.43 MB / 430.1 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: 5.446167599409819]