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.001349/0.001349, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001446/0.001446, allocations: 161 kB / 24.56 MB, free: 20 kB / 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 1.002/1.002, allocations: 177.1 MB / 205 MB, free: 5.297 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.[0-9,]+.|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.[0-9,]+.|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.262e-06/1.262e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.895e-05/2.021e-05, allocations: 5.266 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01252/0.01254, allocations: 15.61 MB / 288.6 MB, free: 1.691 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1225/0.135, allocations: 5.257 MB / 293.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.1374, allocations: 125 kB / 294 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002715/0.1401, allocations: 1.084 MB / 295.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003353/0.1435, allocations: 1.323 MB / 296.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.1452, allocations: 0.9136 MB / 297.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004277/0.1495, allocations: 3.795 MB / 301.1 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002503/0.152, allocations: 1.85 MB / 303 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003138/0.1552, allocations: 2.641 MB / 305.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002383/0.1575, allocations: 1.904 MB / 307.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008791/0.1584, allocations: 477.8 kB / 308 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.1596, allocations: 0.6904 MB / 308.7 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006046/0.1602, allocations: 1.193 MB / 309.9 MB, free: 9.086 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001415/0.1616, allocations: 1.399 MB / 311.3 MB, free: 8.316 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00289/0.1645, allocations: 3.365 MB / 314.6 MB, free: 6.277 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1645, allocations: 0 / 314.6 MB, free: 6.277 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1645, allocations: 0 / 314.6 MB, free: 6.277 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000124/0.1646, allocations: 0 / 314.6 MB, free: 6.277 MB / 266.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.005381/0.17, allocations: 4.492 MB / 319.1 MB, free: 2.125 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.17, allocations: 12.03 kB / 319.1 MB, free: 2.113 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.1718, allocations: 0.9811 MB / 320.1 MB, free: 1.133 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/0.1742, allocations: 2.133 MB / 322.2 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.1743, allocations: 236.3 kB / 322.5 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002964/0.1746, allocations: 315.8 kB / 322.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003418/0.178, allocations: 2.458 MB / 325.2 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.446e-05/0.1781, allocations: 19.47 kB / 325.2 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002002/0.1783, allocations: 124 kB / 325.4 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/0.1784, allocations: 146.2 kB / 325.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002384/0.1808, allocations: 1.196 MB / 326.7 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.1916, allocations: 10.96 MB / 337.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.1934, allocations: 1.238 MB / 338.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000706/0.1941, allocations: 0.4929 MB / 339.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00224/0.1964, allocations: 1.777 MB / 341.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.1964, allocations: 54.39 kB / 341.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 2.424e-06/0.1964, allocations: 0 / 341.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.005576/0.202, allocations: 3.772 MB / 345 MB, free: 7.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.202, allocations: 72.72 kB / 345.1 MB, free: 7.758 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.2035, allocations: 1.543 MB / 346.6 MB, free: 6.203 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/0.2036, allocations: 45.7 kB / 346.7 MB, free: 6.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007801/0.2044, allocations: 1.659 MB / 348.3 MB, free: 4.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003113/0.2047, allocations: 0.5222 MB / 348.8 MB, free: 3.965 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003422/0.205, allocations: 349.1 kB / 349.2 MB, free: 3.613 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2052, allocations: 480.7 kB / 349.6 MB, free: 3.141 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004737/0.2056, allocations: 275.8 kB / 349.9 MB, free: 2.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.2066, allocations: 1.179 MB / 351.1 MB, free: 1.316 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.2081, allocations: 1.59 MB / 352.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.2081, allocations: 8 kB / 352.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002287/0.2104, allocations: 1.577 MB / 354.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.2105, allocations: 12.16 kB / 354.3 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/0.2105, allocations: 24 kB / 354.3 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.2107, allocations: 91.02 kB / 354.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009372/0.2116, allocations: 483.2 kB / 354.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007771/0.2124, allocations: 1.764 MB / 356.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006462/0.2131, allocations: 115.8 kB / 356.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.884e-05/0.2131, allocations: 87.98 kB / 356.8 MB, free: 11.05 MB / 314.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.0004923/0.2136, allocations: 280 kB / 357.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.2139, allocations: 242.7 kB / 357.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/0.2153, allocations: 1.11 MB / 358.4 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.2153, allocations: 12 kB / 358.5 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2153, allocations: 0 / 358.5 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.2153, allocations: 11.97 kB / 358.5 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004272/0.2196, allocations: 3.424 MB / 361.9 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2196, allocations: 4 kB / 361.9 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006985/0.2203, allocations: 307.5 kB / 362.2 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001631/0.2204, allocations: 79.25 kB / 362.3 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.2205, allocations: 28 kB / 362.3 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006446/0.2211, allocations: 1.732 MB / 364 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2211, allocations: 7.875 kB / 364 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.223, allocations: 1.593 MB / 365.6 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004855/0.2235, allocations: 362.5 kB / 366 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.2236, allocations: 24 kB / 366 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004538/0.2241, allocations: 75.91 kB / 366.1 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.2242, allocations: 101 kB / 366.2 MB, free: 1.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.241e-05/0.2242, allocations: 39.98 kB / 366.2 MB, free: 1.352 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008842/0.2251, allocations: 0.8712 MB / 367.1 MB, free: 500 kB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2251, allocations: 4.031 kB / 367.1 MB, free: 496 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.00122/0.2263, allocations: 0.5274 MB / 367.6 MB, free: 15.95 MB / 330.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.0002771/0.2266, allocations: 177.1 kB / 367.8 MB, free: 15.78 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.2284, allocations: 1.216 MB / 369 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2284, allocations: 0 / 369 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006879/0.2291, allocations: 0.6708 MB / 369.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.2303, allocations: 0.492 MB / 370.2 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006434/0.2368, allocations: 4.924 MB / 375.1 MB, free: 8.355 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008244/0.2376, allocations: 0.7507 MB / 375.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009189/0.2385, allocations: 428.4 kB / 376.3 MB, free: 7.152 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003865/0.2389, allocations: 144.5 kB / 376.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of SimCode: time 1.342e-06/0.2389, allocations: 0 / 376.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of Templates: time 0.03848/0.2774, allocations: 24.8 MB / 401.2 MB, free: 14.59 MB / 362.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.570250472985208]