Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001526/0.002559, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001467/0.002563, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9531/0.9531, allocations: 177.5 MB / 190 MB, free: 4.789 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09486/1.048, allocations: 53.87 MB / 243.9 MB, free: 14.85 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.697e-05/1.842e-05, allocations: 6.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01245/0.01247, allocations: 15.22 MB / 260.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.02248, allocations: 5.491 MB / 265.9 MB, free: 8.742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002589/0.02507, allocations: 131.2 kB / 266.1 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002393/0.02746, allocations: 1.106 MB / 267.2 MB, free: 7.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.0306, allocations: 1.319 MB / 268.5 MB, free: 6.172 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.03215, allocations: 0.9153 MB / 269.4 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003762/0.03591, allocations: 3.829 MB / 273.2 MB, free: 1.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1216/0.1575, allocations: 1.891 MB / 275.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004739/0.1623, allocations: 3.221 MB / 278.3 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002665/0.1649, allocations: 1.782 MB / 280.1 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.166, allocations: 467.5 kB / 280.6 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001537/0.1676, allocations: 0.6924 MB / 281.3 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009175/0.1685, allocations: 0.9285 MB / 282.2 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/0.1701, allocations: 1.13 MB / 283.3 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003725/0.1739, allocations: 3.118 MB / 286.5 MB, free: 2.281 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.346e-05/0.1739, allocations: 3.141 kB / 286.5 MB, free: 2.281 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1739, allocations: 0 / 286.5 MB, free: 2.281 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001958/0.1741, allocations: 0 / 286.5 MB, free: 2.281 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.006824/0.1809, allocations: 4.857 MB / 291.3 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.1809, allocations: 11.31 kB / 291.3 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002387/0.1833, allocations: 0.8531 MB / 292.2 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002372/0.1857, allocations: 1.495 MB / 293.7 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.1858, allocations: 234.9 kB / 293.9 MB, free: 28 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003476/0.1862, allocations: 313.2 kB / 294.2 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003168/0.1893, allocations: 2.293 MB / 296.5 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.749e-05/0.1894, allocations: 15.52 kB / 296.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002188/0.1896, allocations: 129.5 kB / 296.6 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.1897, allocations: 143.4 kB / 296.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.1916, allocations: 0.942 MB / 297.7 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01112/0.2027, allocations: 8.652 MB / 306.4 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.2044, allocations: 1.083 MB / 307.5 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005991/0.205, allocations: 410.1 kB / 307.9 MB, free: 5.855 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001557/0.2051, allocations: 65.27 kB / 307.9 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001153/0.2052, allocations: 51.53 kB / 308 MB, free: 5.734 MB / 282.7 MB Notification: Performance of pre-optimization done (n=134): time 3.537e-06/0.2052, allocations: 0 / 308 MB, free: 5.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=170): time 0.00753/0.2128, allocations: 3.662 MB / 311.6 MB, free: 2.117 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.2128, allocations: 72.88 kB / 311.7 MB, free: 2.039 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.2139, allocations: 1.258 MB / 313 MB, free: 1.023 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.605e-05/0.214, allocations: 53.7 kB / 313 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006402/0.2146, allocations: 1.292 MB / 314.3 MB, free: 15.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003742/0.215, allocations: 0.6033 MB / 314.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003993/0.2154, allocations: 348.9 kB / 315.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.141e-05/0.2155, allocations: 301.1 kB / 315.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.2159, allocations: 234.8 kB / 315.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006596/0.2166, allocations: 0.8358 MB / 316.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.2179, allocations: 1.348 MB / 318 MB, free: 11.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.218, allocations: 4 kB / 318 MB, free: 11.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.001682/0.2196, allocations: 1.199 MB / 319.2 MB, free: 10.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.2197, allocations: 12 kB / 319.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/0.2197, allocations: 21.48 kB / 319.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001991/0.2199, allocations: 93.27 kB / 319.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.2214, allocations: 0.5573 MB / 319.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006654/0.222, allocations: 1.189 MB / 321 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000771/0.2228, allocations: 72.08 kB / 321.1 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.2229, allocations: 71.98 kB / 321.2 MB, free: 8.625 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (256): * Single equations (assignments): 253 * 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.0006715/0.2236, allocations: 241.5 kB / 321.4 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.2238, allocations: 175.1 kB / 321.6 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.2251, allocations: 0.8983 MB / 322.5 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.2251, allocations: 16 kB / 322.5 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.2251, allocations: 3.938 kB / 322.5 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.2251, allocations: 7.969 kB / 322.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.229, allocations: 2.673 MB / 325.2 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.229, allocations: 0 / 325.2 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.2301, allocations: 377.3 kB / 325.5 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004403/0.2306, allocations: 237.6 kB / 325.8 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001622/0.2307, allocations: 54.53 kB / 325.8 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.185e-05/0.2308, allocations: 39.98 kB / 325.9 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005576/0.2314, allocations: 1.166 MB / 327 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.2314, allocations: 3.984 kB / 327 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.233, allocations: 1.319 MB / 328.4 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001627/0.2331, allocations: 32 kB / 328.4 MB, free: 1.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.2336, allocations: 48.14 kB / 328.4 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.2338, allocations: 116.5 kB / 328.5 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.65e-05/0.2339, allocations: 35.98 kB / 328.6 MB, free: 1.297 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006152/0.2345, allocations: 0.6158 MB / 329.2 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2345, allocations: 0 / 329.2 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001313/0.2358, allocations: 0.5429 MB / 329.7 MB, free: 224 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (169): * Single equations (assignments): 166 * 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.0002845/0.2361, allocations: 181.3 kB / 329.9 MB, free: 56 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.2376, allocations: 1.054 MB / 331 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-05/0.2376, allocations: 40.38 kB / 331 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007828/0.2384, allocations: 0.6584 MB / 331.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003256/0.2417, allocations: 4.666 MB / 336.3 MB, free: 8.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02214/0.2638, allocations: 5.109 MB / 341.4 MB, free: 3.648 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005822/0.2644, allocations: 0.6282 MB / 342.1 MB, free: 2.996 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001042/0.2654, allocations: 301.6 kB / 342.4 MB, free: 2.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008148/0.2663, allocations: 0.4991 MB / 342.9 MB, free: 2.195 MB / 314.7 MB Notification: Performance of SimCode: time 1.413e-06/0.2663, allocations: 4 kB / 342.9 MB, free: 2.191 MB / 314.7 MB Notification: Performance of Templates: time 0.03662/0.3029, allocations: 27.83 MB / 370.7 MB, free: 6.824 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2282167794182897]