Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 81.3 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 146.7 kB / 23.93 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 173.4 MB / 200.4 MB, free: 12.92 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 318.9 MB, free: 3.418 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.772e-05/1.902e-05, allocations: 6.219 kB / 319 MB, free: 3.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01589/0.01591, allocations: 13.26 MB / 332.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.0279, allocations: 4.838 MB / 337 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003761/0.03166, allocations: 121.9 kB / 337.2 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004018/0.03568, allocations: 1.072 MB / 338.2 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004938/0.04062, allocations: 1.335 MB / 339.6 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.04299, allocations: 0.8803 MB / 340.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005183/0.04818, allocations: 3.767 MB / 344.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002738/0.05091, allocations: 1.842 MB / 346.1 MB, free: 336 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003845/0.05476, allocations: 2.6 MB / 348.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002868/0.05763, allocations: 1.73 MB / 350.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007344/0.05836, allocations: 480 kB / 350.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001417/0.05978, allocations: 0.6676 MB / 351.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.06097, allocations: 1.18 MB / 352.7 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.06287, allocations: 1.372 MB / 354.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007514/0.07038, allocations: 6.322 MB / 360.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.07039, allocations: 0 / 360.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.07039, allocations: 0 / 360.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001007/0.07049, allocations: 4 kB / 360.4 MB, free: 1.949 MB / 318.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.009604/0.0801, allocations: 4.217 MB / 364.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.08013, allocations: 12.92 kB / 364.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002834/0.08297, allocations: 0.6349 MB / 365.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.08699, allocations: 2.194 MB / 367.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/0.08721, allocations: 242.6 kB / 367.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004834/0.08769, allocations: 308.3 kB / 368 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007176/0.09487, allocations: 4.119 MB / 372.1 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-05/0.09494, allocations: 7.938 kB / 372.1 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003089/0.09525, allocations: 128 kB / 372.3 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001669/0.09542, allocations: 146.2 kB / 372.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006255/0.1017, allocations: 3.382 MB / 375.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01846/0.1201, allocations: 11.26 MB / 387 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003542/0.1237, allocations: 1.674 MB / 388.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.1253, allocations: 0.8946 MB / 389.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004205/0.1295, allocations: 2.102 MB / 391.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/0.1296, allocations: 47.56 kB / 391.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 3.266e-06/0.1296, allocations: 0 / 391.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01197/0.1415, allocations: 5.791 MB / 397.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.1416, allocations: 68.72 kB / 397.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002567/0.1441, allocations: 1.735 MB / 399.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.1443, allocations: 53.7 kB / 399.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.1455, allocations: 1.563 MB / 401 MB, free: 8.727 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004593/0.146, allocations: 0.4997 MB / 401.5 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005612/0.1466, allocations: 327.4 kB / 401.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1467, allocations: 309.1 kB / 402.1 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.148, allocations: 0.773 MB / 402.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/0.1499, allocations: 1.4 MB / 404.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/0.1533, allocations: 2.312 MB / 406.6 MB, free: 2.562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.1533, allocations: 4 kB / 406.6 MB, free: 2.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004182/0.1575, allocations: 2.467 MB / 409 MB, free: 76 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.1575, allocations: 12 kB / 409.1 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.1576, allocations: 24.09 kB / 409.1 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/0.158, allocations: 118.5 kB / 409.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/0.1598, allocations: 483.2 kB / 409.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.161, allocations: 1.287 MB / 410.9 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.1622, allocations: 111.9 kB / 411.1 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001551/0.1624, allocations: 83.98 kB / 411.1 MB, free: 13.86 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.00167/0.1641, allocations: 0.9853 MB / 412.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003238/0.1644, allocations: 198.7 kB / 412.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003455/0.1678, allocations: 1.948 MB / 414.3 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.1678, allocations: 12 kB / 414.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1679, allocations: 0 / 414.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.1679, allocations: 11.95 kB / 414.3 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007178/0.175, allocations: 4.223 MB / 418.5 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1751, allocations: 0 / 418.5 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/0.1764, allocations: 303.6 kB / 418.8 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002991/0.1767, allocations: 98.47 kB / 418.9 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-05/0.1768, allocations: 36.17 kB / 418.9 MB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.1779, allocations: 1.241 MB / 420.2 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.1779, allocations: 4 kB / 420.2 MB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004799/0.1827, allocations: 3.071 MB / 423.3 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008194/0.1835, allocations: 370.7 kB / 423.6 MB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.1837, allocations: 24 kB / 423.6 MB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000922/0.1847, allocations: 83.84 kB / 423.7 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.1848, allocations: 93.08 kB / 423.8 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.994e-05/0.1849, allocations: 39.98 kB / 423.9 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001741/0.1867, allocations: 1.152 MB / 425 MB, free: 15.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1867, allocations: 0 / 425 MB, free: 15.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001669/0.1884, allocations: 0.5273 MB / 425.5 MB, free: 15.2 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.0003442/0.1887, allocations: 166.9 kB / 425.7 MB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003321/0.192, allocations: 1.972 MB / 427.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.192, allocations: 3.938 kB / 427.7 MB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.1936, allocations: 0.9612 MB / 428.6 MB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.1956, allocations: 455.9 kB / 429.1 MB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009196/0.2048, allocations: 5.595 MB / 434.7 MB, free: 5.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001917/0.2067, allocations: 1.713 MB / 436.4 MB, free: 4.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001402/0.2081, allocations: 0.4887 MB / 436.9 MB, free: 3.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/0.2086, allocations: 144.5 kB / 437 MB, free: 3.566 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2086, allocations: 0 / 437 MB, free: 3.566 MB / 398.1 MB Notification: Performance of Templates: time 0.04686/0.2554, allocations: 24.31 MB / 461.3 MB, free: 11.59 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.3382104597985744]