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.001919/0.001919, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002464/0.002464, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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 1.714/1.714, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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 0.001642/0.001642, allocations: 55.91 kB / 379 MB, free: 2.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3087, allocations: 53.36 MB / 432.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01829/0.327, allocations: 13.79 MB / 446.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01267/0.3397, allocations: 5.07 MB / 451.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00401/0.3437, allocations: 123.2 kB / 451.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00388/0.3476, allocations: 1.064 MB / 452.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005018/0.3526, allocations: 1.278 MB / 453.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00303/0.3556, allocations: 0.9072 MB / 454.6 MB, free: 368 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007594/0.3632, allocations: 3.661 MB / 458.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003288/0.3665, allocations: 1.905 MB / 460.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003708/0.3702, allocations: 1.795 MB / 462 MB, free: 8.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003933/0.3741, allocations: 2.152 MB / 464.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009443/0.3751, allocations: 480 kB / 464.6 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001753/0.3768, allocations: 0.6872 MB / 465.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00119/0.378, allocations: 1.165 MB / 466.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002295/0.3803, allocations: 1.622 MB / 468 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008887/0.3892, allocations: 6.34 MB / 474.4 MB, free: 12.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.3892, allocations: 3.938 kB / 474.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3892, allocations: 0 / 474.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002081/0.3894, allocations: 0 / 474.4 MB, free: 12.43 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.0131/0.4025, allocations: 4.283 MB / 478.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.4026, allocations: 8.031 kB / 478.7 MB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003272/0.4058, allocations: 0.6349 MB / 479.3 MB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005942/0.4118, allocations: 2.21 MB / 481.5 MB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002536/0.412, allocations: 234.7 kB / 481.8 MB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008715/0.4129, allocations: 316.1 kB / 482.1 MB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009643/0.4225, allocations: 4.126 MB / 486.2 MB, free: 456 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.929e-05/0.4226, allocations: 7.953 kB / 486.2 MB, free: 448 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003201/0.4229, allocations: 128 kB / 486.3 MB, free: 320 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/0.4231, allocations: 146.2 kB / 486.5 MB, free: 172 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007575/0.4307, allocations: 3.386 MB / 489.9 MB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.027/0.4577, allocations: 11.31 MB / 0.4894 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003798/0.4615, allocations: 1.749 MB / 0.4911 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.4632, allocations: 0.9336 MB / 0.492 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005498/0.4687, allocations: 2.148 MB / 0.4941 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.941e-05/0.4688, allocations: 51.56 kB / 0.4942 GB, free: 12.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.657e-06/0.4688, allocations: 0 / 0.4942 GB, free: 12.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01436/0.4832, allocations: 5.818 MB / 0.4999 GB, free: 6.348 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.4832, allocations: 64.72 kB / 0.4999 GB, free: 6.273 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.4864, allocations: 1.752 MB / 0.5016 GB, free: 4.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001677/0.4866, allocations: 49.7 kB / 0.5017 GB, free: 4.465 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001457/0.488, allocations: 1.567 MB / 0.5032 GB, free: 2.883 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005985/0.4886, allocations: 0.5074 MB / 0.5037 GB, free: 2.371 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006307/0.4892, allocations: 339.4 kB / 0.504 GB, free: 2.031 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4894, allocations: 305.1 kB / 0.5043 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.4907, allocations: 0.7691 MB / 0.5051 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/0.4927, allocations: 1.396 MB / 0.5064 GB, free: 15.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/0.4962, allocations: 2.324 MB / 0.5087 GB, free: 12.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/0.4962, allocations: 4 kB / 0.5087 GB, free: 12.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00489/0.5011, allocations: 2.471 MB / 0.5111 GB, free: 10.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.5012, allocations: 15.94 kB / 0.5111 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.97e-05/0.5012, allocations: 20 kB / 0.5112 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004612/0.5017, allocations: 114.5 kB / 0.5113 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/0.5035, allocations: 483.2 kB / 0.5117 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.5049, allocations: 1.287 MB / 0.513 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/0.5069, allocations: 115.8 kB / 0.5131 GB, free: 8.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.507, allocations: 83.98 kB / 0.5132 GB, free: 7.988 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.0024/0.5094, allocations: 0.993 MB / 0.5141 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000641/0.5101, allocations: 198.7 kB / 0.5143 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003835/0.5139, allocations: 1.945 MB / 0.5162 GB, free: 4.824 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.5139, allocations: 16 kB / 0.5162 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.5139, allocations: 7.922 kB / 0.5163 GB, free: 4.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.514, allocations: 3.984 kB / 0.5163 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.5246, allocations: 4.235 MB / 0.5204 GB, free: 496 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.5246, allocations: 0 / 0.5204 GB, free: 496 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.5262, allocations: 315.8 kB / 0.5207 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003966/0.5266, allocations: 94.47 kB / 0.5208 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.5267, allocations: 35.98 kB / 0.5208 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.5282, allocations: 1.241 MB / 0.522 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.5282, allocations: 4 kB / 0.522 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006033/0.5342, allocations: 3.083 MB / 0.525 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001617/0.5358, allocations: 370.6 kB / 0.5254 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007777/0.5366, allocations: 27.94 kB / 0.5254 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/0.5383, allocations: 83.89 kB / 0.5255 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002509/0.5386, allocations: 89.14 kB / 0.5256 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.5387, allocations: 39.98 kB / 0.5256 GB, free: 10.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003096/0.5418, allocations: 1.164 MB / 0.5268 GB, free: 9.801 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5418, allocations: 0 / 0.5268 GB, free: 9.801 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003043/0.5448, allocations: 0.5312 MB / 0.5273 GB, free: 9.27 MB / 446.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.0005711/0.5454, allocations: 180.5 kB / 0.5275 GB, free: 9.086 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004484/0.5499, allocations: 1.968 MB / 0.5294 GB, free: 7.102 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.5499, allocations: 8.062 kB / 0.5294 GB, free: 7.094 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001885/0.5518, allocations: 0.9447 MB / 0.5303 GB, free: 6.129 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003535/0.5553, allocations: 484.6 kB / 0.5308 GB, free: 5.664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3333/0.8886, allocations: 5.666 MB / 0.5363 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004982/0.8936, allocations: 1.714 MB / 0.538 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002425/0.896, allocations: 0.4924 MB / 0.5385 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007742/0.8968, allocations: 146.3 kB / 0.5386 GB, free: 101.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.793e-06/0.8968, allocations: 3.938 kB / 0.5386 GB, free: 101.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04803/0.9448, allocations: 29.24 MB / 0.5672 GB, free: 80.06 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.019425496997428]