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.0009302/0.0009302, allocations: 81.95 kB / 21.42 MB, free: 3.074 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.0009662/0.0009662, allocations: 167.2 kB / 24.82 MB, free: 8.773 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.9302/0.9302, allocations: 177.1 MB / 205.3 MB, free: 5.516 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: 3.938 kB / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.491e-05, allocations: 2.312 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01918/0.01919, allocations: 15.04 MB / 288.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1376/0.1568, allocations: 5.216 MB / 293.7 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001942/0.1587, allocations: 125.3 kB / 293.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002197/0.1609, allocations: 1.085 MB / 294.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002465/0.1634, allocations: 1.318 MB / 296.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.1648, allocations: 0.9051 MB / 297.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003088/0.1679, allocations: 3.802 MB / 300.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.1698, allocations: 1.842 MB / 302.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003093/0.1729, allocations: 3.024 MB / 305.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.1746, allocations: 1.778 MB / 307.6 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004296/0.175, allocations: 469.1 kB / 308 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.1762, allocations: 0.6738 MB / 308.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005971/0.1768, allocations: 1.142 MB / 309.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.1778, allocations: 1.358 MB / 311.2 MB, free: 8.699 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002445/0.1802, allocations: 3.295 MB / 314.5 MB, free: 6.664 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1802, allocations: 0 / 314.5 MB, free: 6.664 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1802, allocations: 4 kB / 314.5 MB, free: 6.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.78e-05/0.1802, allocations: 0 / 314.5 MB, free: 6.66 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.007273/0.1875, allocations: 4.332 MB / 318.8 MB, free: 2.465 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.1876, allocations: 11.97 kB / 318.8 MB, free: 2.453 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002167/0.1897, allocations: 0.9352 MB / 319.8 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002608/0.1923, allocations: 2.107 MB / 321.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.1925, allocations: 237.6 kB / 322.1 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004083/0.1929, allocations: 310.5 kB / 322.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003163/0.1961, allocations: 2.257 MB / 324.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.31e-05/0.1961, allocations: 15.94 kB / 324.7 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/0.1963, allocations: 127.9 kB / 324.8 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.1964, allocations: 150.2 kB / 325 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.1981, allocations: 0.936 MB / 325.9 MB, free: 11.42 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01231/0.2104, allocations: 10.72 MB / 336.6 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.2119, allocations: 1.157 MB / 337.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005328/0.2124, allocations: 455 kB / 338.2 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002308/0.2147, allocations: 1.666 MB / 339.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2148, allocations: 46.39 kB / 339.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=107): time 2.244e-06/0.2148, allocations: 0 / 339.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.004828/0.2196, allocations: 3.06 MB / 343 MB, free: 10.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.2196, allocations: 76.66 kB / 343 MB, free: 10.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/0.2209, allocations: 1.488 MB / 344.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.277e-05/0.221, allocations: 49.7 kB / 344.6 MB, free: 9.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000833/0.2218, allocations: 1.678 MB / 346.3 MB, free: 7.562 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003148/0.2221, allocations: 0.5096 MB / 346.8 MB, free: 7.082 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003316/0.2225, allocations: 354.5 kB / 347.1 MB, free: 6.762 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2226, allocations: 484.7 kB / 347.6 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.2229, allocations: 207.8 kB / 347.8 MB, free: 6.082 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006683/0.2235, allocations: 1.111 MB / 348.9 MB, free: 4.637 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.2247, allocations: 1.47 MB / 350.4 MB, free: 2.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/0.2247, allocations: 4 kB / 350.4 MB, free: 2.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001708/0.2264, allocations: 1.436 MB / 351.8 MB, free: 1.383 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.2264, allocations: 14.03 kB / 351.8 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.2265, allocations: 20 kB / 351.9 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001968/0.2267, allocations: 91.02 kB / 351.9 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008606/0.2275, allocations: 439.6 kB / 352.4 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000864/0.2284, allocations: 1.752 MB / 354.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007418/0.2291, allocations: 68.06 kB / 354.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.39e-05/0.2292, allocations: 71.98 kB / 354.3 MB, free: 14.82 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 (231): * Single equations (assignments): 228 * 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.0008247/0.23, allocations: 272 kB / 354.5 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.2303, allocations: 242.7 kB / 354.8 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.2314, allocations: 0.9835 MB / 355.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.2314, allocations: 15.94 kB / 355.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2314, allocations: 0 / 355.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.2314, allocations: 7.969 kB / 355.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003774/0.2352, allocations: 2.718 MB / 358.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.2352, allocations: 256 / 358.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007004/0.2359, allocations: 267.7 kB / 358.7 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001581/0.2361, allocations: 74.2 kB / 358.8 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.698e-05/0.2361, allocations: 31.94 kB / 358.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007349/0.2369, allocations: 1.723 MB / 360.6 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2369, allocations: 4 kB / 360.6 MB, free: 8.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.2383, allocations: 1.396 MB / 362 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004379/0.2387, allocations: 320.6 kB / 362.3 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.2388, allocations: 31.98 kB / 362.3 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003685/0.2392, allocations: 40.14 kB / 362.4 MB, free: 6.672 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.2393, allocations: 101 kB / 362.5 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/0.2394, allocations: 31.98 kB / 362.5 MB, free: 6.539 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006494/0.24, allocations: 0.7837 MB / 363.3 MB, free: 5.836 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.24, allocations: 0 / 363.3 MB, free: 5.836 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001228/0.2412, allocations: 0.5195 MB / 363.8 MB, free: 5.316 MB / 314.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 (140): * Single equations (assignments): 137 * 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.0002408/0.2415, allocations: 176.3 kB / 364 MB, free: 5.141 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.243, allocations: 1.095 MB / 365.1 MB, free: 4.043 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.243, allocations: 4 kB / 365.1 MB, free: 4.039 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.2435, allocations: 0.6132 MB / 365.7 MB, free: 3.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.2447, allocations: 493.2 kB / 366.2 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006182/0.2509, allocations: 4.852 MB / 371 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008149/0.2517, allocations: 0.7546 MB / 371.8 MB, free: 13.24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007956/0.2525, allocations: 276.7 kB / 372 MB, free: 12.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008055/0.2533, allocations: 0.5331 MB / 372.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of SimCode: time 1.803e-06/0.2533, allocations: 0 / 372.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of Templates: time 0.03808/0.2914, allocations: 25.21 MB / 397.8 MB, free: 3.684 MB / 346.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.2727413261309266]