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.001319/0.001319, allocations: 73.72 kB / 21.24 MB, free: 0.5547 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.001316/0.001316, allocations: 150.5 kB / 24.49 MB, free: 3.723 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.37/1.37, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 179] 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 0.001564/0.001564, allocations: 50.45 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08134/0.0829, allocations: 52.16 MB / 371.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0172/0.1001, allocations: 13.25 MB / 384.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009321/0.1094, allocations: 4.828 MB / 389.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001925/0.1114, allocations: 123.2 kB / 389.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002767/0.1141, allocations: 1.056 MB / 390.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003604/0.1177, allocations: 1.297 MB / 392.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002057/0.1198, allocations: 0.869 MB / 393 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004469/0.1242, allocations: 3.623 MB / 396.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002652/0.1269, allocations: 1.835 MB / 398.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002414/0.1293, allocations: 1.78 MB / 400.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002825/0.1321, allocations: 1.938 MB / 402.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006878/0.1328, allocations: 476 kB / 402.7 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001276/0.1341, allocations: 0.6716 MB / 403.3 MB, free: 7.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.1353, allocations: 1.145 MB / 404.5 MB, free: 6.262 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001857/0.1371, allocations: 1.626 MB / 406.1 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006723/0.1438, allocations: 6.314 MB / 412.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1438, allocations: 0 / 412.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1438, allocations: 0 / 412.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9e-05/0.1439, allocations: 0 / 412.4 MB, free: 14.29 MB / 382.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.009787/0.1537, allocations: 4.252 MB / 416.7 MB, free: 9.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1538, allocations: 16.86 kB / 416.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002812/0.1566, allocations: 0.6388 MB / 417.3 MB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004126/0.1607, allocations: 2.194 MB / 419.5 MB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.1609, allocations: 238.7 kB / 419.8 MB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004714/0.1614, allocations: 316.1 kB / 420.1 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006941/0.1683, allocations: 4.122 MB / 424.2 MB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.981e-05/0.1684, allocations: 0 / 424.2 MB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003216/0.1687, allocations: 128 kB / 424.3 MB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001595/0.1689, allocations: 150.2 kB / 424.5 MB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006134/0.175, allocations: 3.382 MB / 427.8 MB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/0.1941, allocations: 11.28 MB / 439.1 MB, free: 3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003511/0.1976, allocations: 1.658 MB / 440.8 MB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.1993, allocations: 0.8948 MB / 441.7 MB, free: 492 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004373/0.2036, allocations: 2.098 MB / 443.8 MB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/0.2037, allocations: 47.5 kB / 443.8 MB, free: 14.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.885e-06/0.2037, allocations: 0 / 443.8 MB, free: 14.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01203/0.2157, allocations: 5.802 MB / 449.6 MB, free: 8.465 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.2158, allocations: 64.72 kB / 449.7 MB, free: 8.391 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002498/0.2183, allocations: 1.739 MB / 451.4 MB, free: 6.648 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-05/0.2184, allocations: 45.7 kB / 451.5 MB, free: 6.598 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.2196, allocations: 1.571 MB / 453 MB, free: 5.012 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/0.22, allocations: 0.5035 MB / 453.5 MB, free: 4.504 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005253/0.2205, allocations: 335.4 kB / 453.9 MB, free: 4.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.2207, allocations: 305.1 kB / 454.2 MB, free: 3.867 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.222, allocations: 0.7691 MB / 454.9 MB, free: 3.098 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/0.2239, allocations: 1.4 MB / 456.3 MB, free: 1.418 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004907/0.2288, allocations: 2.316 MB / 458.7 MB, free: 14.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.662e-05/0.2288, allocations: 4 kB / 458.7 MB, free: 14.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00576/0.2345, allocations: 2.467 MB / 461.1 MB, free: 12.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/0.2346, allocations: 16 kB / 461.1 MB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/0.2346, allocations: 24.06 kB / 461.2 MB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/0.235, allocations: 114.5 kB / 461.3 MB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/0.2368, allocations: 491.1 kB / 461.8 MB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.2379, allocations: 1.287 MB / 463 MB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/0.2392, allocations: 111.9 kB / 463.1 MB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.2393, allocations: 79.98 kB / 463.2 MB, free: 10.13 MB / 430.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.001566/0.2409, allocations: 0.993 MB / 464.2 MB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003066/0.2412, allocations: 198.7 kB / 464.4 MB, free: 8.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003398/0.2446, allocations: 1.941 MB / 466.4 MB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.2446, allocations: 15.94 kB / 466.4 MB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2446, allocations: 4 kB / 466.4 MB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/0.2446, allocations: 7.969 kB / 466.4 MB, free: 6.941 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007111/0.2517, allocations: 4.223 MB / 470.6 MB, free: 2.645 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2517, allocations: 0 / 470.6 MB, free: 2.645 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/0.2531, allocations: 311.5 kB / 470.9 MB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002842/0.2534, allocations: 94.47 kB / 471 MB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-05/0.2535, allocations: 32.14 kB / 471 MB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.2545, allocations: 1.248 MB / 472.3 MB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2545, allocations: 0 / 472.3 MB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1646/0.419, allocations: 3.072 MB / 475.4 MB, free: 88.88 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007629/0.4198, allocations: 374.1 kB / 475.7 MB, free: 88.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.42, allocations: 26.19 kB / 475.7 MB, free: 88.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009322/0.4209, allocations: 79.36 kB / 475.8 MB, free: 88.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.4211, allocations: 91.47 kB / 475.9 MB, free: 88.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.574e-05/0.4212, allocations: 39.06 kB / 475.9 MB, free: 88.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001525/0.4227, allocations: 1.148 MB / 477.1 MB, free: 88.45 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4227, allocations: 0 / 477.1 MB, free: 88.45 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001562/0.4243, allocations: 0.5398 MB / 477.6 MB, free: 88.4 MB / 430.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.0002711/0.4245, allocations: 168.6 kB / 477.8 MB, free: 88.29 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.4274, allocations: 1.975 MB / 479.8 MB, free: 87.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.4274, allocations: 1.656 kB / 479.8 MB, free: 87.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.4288, allocations: 0.9575 MB / 480.7 MB, free: 87.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/0.4306, allocations: 457.7 kB / 481.2 MB, free: 86.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007449/0.4381, allocations: 5.662 MB / 486.8 MB, free: 84.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001458/0.4395, allocations: 1.714 MB / 488.6 MB, free: 83.81 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001219/0.4407, allocations: 0.4942 MB / 489.1 MB, free: 83.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003716/0.4411, allocations: 144.4 kB / 489.2 MB, free: 83.73 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4411, allocations: 0 / 489.2 MB, free: 83.73 MB / 430.1 MB Notification: Performance of Templates: time 0.03429/0.4754, allocations: 24.52 MB / 0.5017 GB, free: 62.48 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 -s ida -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/jenkins1/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/jenkins1/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.291604269994423]