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.001477/0.001477, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001234/0.001234, allocations: 167.6 kB / 25.61 MB, free: 8.582 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.9653/0.9653, allocations: 177.2 MB / 206.1 MB, free: 4.504 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.824e-06/1.824e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.721e-05/1.904e-05, allocations: 2.312 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01205/0.01207, allocations: 15.04 MB / 289.3 MB, free: 5.305 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009173/0.02124, allocations: 5.233 MB / 294.5 MB, free: 60 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002171/0.02341, allocations: 123.3 kB / 294.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.02549, allocations: 1.079 MB / 295.7 MB, free: 14.85 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002384/0.02787, allocations: 1.312 MB / 297 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.02918, allocations: 0.9077 MB / 297.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002822/0.032, allocations: 3.809 MB / 301.7 MB, free: 8.797 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001841/0.03384, allocations: 1.846 MB / 303.6 MB, free: 6.879 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002932/0.03678, allocations: 3.014 MB / 306.6 MB, free: 3.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.03853, allocations: 1.777 MB / 308.4 MB, free: 2.078 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004526/0.03898, allocations: 468 kB / 308.8 MB, free: 1.621 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008975/0.03988, allocations: 0.6753 MB / 309.5 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006764/0.04055, allocations: 1.149 MB / 310.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.04168, allocations: 1.356 MB / 312 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003282/0.04497, allocations: 3.298 MB / 315.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.04497, allocations: 0 / 315.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.04497, allocations: 0 / 315.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.231e-05/0.04504, allocations: 4 kB / 315.3 MB, free: 11.12 MB / 298.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.005146/0.05018, allocations: 4.324 MB / 319.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.05022, allocations: 12.03 kB / 319.6 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001783/0.052, allocations: 0.947 MB / 320.6 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/0.05424, allocations: 2.1 MB / 322.7 MB, free: 3.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.05437, allocations: 234.7 kB / 322.9 MB, free: 3.387 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/0.05467, allocations: 308.4 kB / 323.2 MB, free: 3.086 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002765/0.05744, allocations: 2.259 MB / 325.5 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.409e-05/0.0575, allocations: 7.891 kB / 325.5 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/0.0577, allocations: 124 kB / 325.6 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/0.05783, allocations: 146.2 kB / 325.7 MB, free: 472 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.05931, allocations: 0.945 MB / 326.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.06962, allocations: 10.72 MB / 337.4 MB, free: 4.359 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.0712, allocations: 1.163 MB / 338.6 MB, free: 3.238 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005364/0.07173, allocations: 440.4 kB / 339 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002155/0.07389, allocations: 1.652 MB / 340.6 MB, free: 1.137 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.07392, allocations: 50.39 kB / 340.7 MB, free: 1.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=107): time 2.485e-06/0.07392, allocations: 0 / 340.7 MB, free: 1.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.004847/0.07877, allocations: 3.06 MB / 343.8 MB, free: 13.97 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.0788, allocations: 68.72 kB / 343.8 MB, free: 13.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.07997, allocations: 1.491 MB / 345.3 MB, free: 12.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.165e-05/0.08003, allocations: 49.7 kB / 345.4 MB, free: 12.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000826/0.08086, allocations: 1.676 MB / 347 MB, free: 10.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002806/0.08114, allocations: 0.5074 MB / 347.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003449/0.08148, allocations: 360.9 kB / 347.9 MB, free: 9.762 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.08159, allocations: 480.8 kB / 348.4 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.08186, allocations: 207.8 kB / 348.6 MB, free: 9.086 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006887/0.08255, allocations: 1.112 MB / 349.7 MB, free: 7.598 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.08407, allocations: 1.474 MB / 351.2 MB, free: 5.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.08408, allocations: 8 kB / 351.2 MB, free: 5.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001558/0.08564, allocations: 1.421 MB / 352.6 MB, free: 4.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.08567, allocations: 12 kB / 352.6 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.08569, allocations: 20 kB / 352.6 MB, free: 4.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002089/0.08589, allocations: 98.94 kB / 352.7 MB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009209/0.08682, allocations: 435.7 kB / 353.1 MB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008645/0.08768, allocations: 1.752 MB / 354.9 MB, free: 1.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005475/0.08823, allocations: 64.08 kB / 355 MB, free: 1.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.297e-05/0.08831, allocations: 71.98 kB / 355 MB, free: 1.738 MB / 330.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.0005708/0.08888, allocations: 275.9 kB / 355.3 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/0.08911, allocations: 242.7 kB / 355.5 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.0903, allocations: 0.9768 MB / 356.5 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.09031, allocations: 19.94 kB / 356.5 MB, free: 208 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.09032, allocations: 0 / 356.5 MB, free: 208 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.09033, allocations: 7.969 kB / 356.5 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1517/0.242, allocations: 2.718 MB / 359.3 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.242, allocations: 2.281 kB / 359.3 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007617/0.2428, allocations: 265.8 kB / 359.5 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.243, allocations: 71.94 kB / 359.6 MB, free: 62.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.4e-05/0.243, allocations: 32.78 kB / 359.6 MB, free: 62.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006087/0.2436, allocations: 1.718 MB / 361.3 MB, free: 61.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2437, allocations: 2.281 kB / 361.3 MB, free: 61.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.2453, allocations: 1.408 MB / 362.7 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004284/0.2458, allocations: 315.3 kB / 363.1 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.2459, allocations: 28.62 kB / 363.1 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004036/0.2463, allocations: 42.69 kB / 363.1 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.2464, allocations: 90.41 kB / 363.2 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.187e-05/0.2465, allocations: 28.22 kB / 363.2 MB, free: 60.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007039/0.2472, allocations: 0.7869 MB / 364 MB, free: 60.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2472, allocations: 0.5938 kB / 364 MB, free: 60.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00126/0.2484, allocations: 0.5185 MB / 364.5 MB, free: 60.5 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 (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.00024/0.2487, allocations: 179.3 kB / 364.7 MB, free: 60.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.2498, allocations: 1.1 MB / 365.8 MB, free: 60.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2498, allocations: 4.391 kB / 365.8 MB, free: 60.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.2503, allocations: 0.6202 MB / 366.4 MB, free: 59.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.2514, allocations: 483.8 kB / 366.9 MB, free: 59.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004899/0.2563, allocations: 4.846 MB / 371.8 MB, free: 57.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.2568, allocations: 0.7505 MB / 372.5 MB, free: 57.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006318/0.2575, allocations: 283.7 kB / 372.8 MB, free: 57.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007396/0.2582, allocations: 0.5381 MB / 373.3 MB, free: 57.64 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2582, allocations: 0 / 373.3 MB, free: 57.64 MB / 330.7 MB Notification: Performance of Templates: time 0.0301/0.2883, allocations: 25.64 MB / 399 MB, free: 38.26 MB / 330.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.6036633048206568]