Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001931/0.001931, allocations: 77.95 kB / 21.24 MB, free: 476 kB / 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.002385/0.002385, allocations: 165.8 kB / 24.49 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 158.6 MB / 186.2 MB, free: 6.484 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 59.92 kB / 298.7 MB, free: 6.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.242, allocations: 49.14 MB / 347.8 MB, free: 15.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.06373/0.3058, allocations: 34.29 MB / 382.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02585/0.3316, allocations: 10.27 MB / 392.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009501/0.3411, allocations: 318.1 kB / 392.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02227/0.3634, allocations: 8.449 MB / 401.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01288/0.3763, allocations: 3.703 MB / 404.8 MB, free: 6.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007623/0.3839, allocations: 2.381 MB / 407.2 MB, free: 4.035 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01959/0.4035, allocations: 13.5 MB / 420.7 MB, free: 6.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03125/0.4347, allocations: 17.24 MB / 437.9 MB, free: 5.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.021/0.4557, allocations: 10.98 MB / 448.9 MB, free: 10.08 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01456/0.4703, allocations: 7.773 MB / 456.7 MB, free: 2.277 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004963/0.4752, allocations: 1.988 MB / 458.7 MB, free: 296 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006612/0.4819, allocations: 2.355 MB / 461 MB, free: 13.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005788/0.4876, allocations: 4.169 MB / 465.2 MB, free: 9.758 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01189/0.4995, allocations: 6.116 MB / 471.3 MB, free: 3.617 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3652/0.8647, allocations: 26.6 MB / 497.9 MB, free: 45.77 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.8647, allocations: 0 / 497.9 MB, free: 45.77 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.8647, allocations: 6.156 kB / 497.9 MB, free: 45.77 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008042/0.8655, allocations: 0 / 497.9 MB, free: 45.77 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04921/0.9147, allocations: 15.8 MB / 0.5017 GB, free: 38.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.9148, allocations: 11.83 kB / 0.5017 GB, free: 38.8 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04827/0.963, allocations: 9.188 MB / 0.5107 GB, free: 35 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01674/0.9798, allocations: 7.533 MB / 0.518 GB, free: 30.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009356/0.9807, allocations: 0.9429 MB / 0.5189 GB, free: 30.04 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00753/0.9883, allocations: 1.247 MB / 0.5202 GB, free: 29.06 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05502/1.043, allocations: 20.38 MB / 0.5401 GB, free: 8.598 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007401/1.044, allocations: 23.89 kB / 0.5401 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005427/1.049, allocations: 0.5135 MB / 0.5406 GB, free: 8.074 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007434/1.05, allocations: 0.7326 MB / 0.5413 GB, free: 7.344 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04741/1.098, allocations: 18.9 MB / 0.5598 GB, free: 4.434 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1303/1.228, allocations: 53.72 MB / 0.6122 GB, free: 14.62 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0281/1.256, allocations: 14.71 MB / 0.6266 GB, free: 3.32 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007783/1.264, allocations: 3.725 MB / 0.6302 GB, free: 15.58 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02194/1.286, allocations: 10.05 MB / 0.64 GB, free: 5.688 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.05e-05/1.286, allocations: 72.59 kB / 0.6401 GB, free: 5.609 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 6.963e-06/1.286, allocations: 0 / 0.6401 GB, free: 5.609 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.04221/1.328, allocations: 17.86 MB / 0.6575 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/1.328, allocations: 93.94 kB / 0.6576 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2215/1.55, allocations: 5.263 MB / 0.6628 GB, free: 183 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000687/1.55, allocations: 89.55 kB / 0.6629 GB, free: 183 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003443/1.554, allocations: 6.104 MB / 0.6688 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001439/1.555, allocations: 1.44 MB / 0.6702 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002464/1.558, allocations: 1.516 MB / 0.6717 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.939e-05/1.558, allocations: 306.8 kB / 0.672 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004341/1.562, allocations: 3.085 MB / 0.675 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005263/1.567, allocations: 6.804 MB / 0.6817 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/1.577, allocations: 10.59 MB / 0.692 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/1.578, allocations: 34.34 kB / 0.692 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0162/1.594, allocations: 10.76 MB / 0.7025 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.603e-05/1.594, allocations: 65.22 kB / 0.7026 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001801/1.594, allocations: 124 kB / 0.7027 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/1.596, allocations: 0.9704 MB / 0.7037 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005751/1.602, allocations: 1.817 MB / 0.7054 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009941/1.612, allocations: 9.713 MB / 0.7149 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005824/1.618, allocations: 458.3 kB / 0.7154 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001076/1.619, allocations: 419.3 kB / 0.7158 GB, free: 148.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006838/1.626, allocations: 4.453 MB / 0.7201 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/1.627, allocations: 0.5352 MB / 0.7206 GB, free: 144 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/1.637, allocations: 6.468 MB / 0.727 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/1.637, allocations: 46.94 kB / 0.727 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.03e-05/1.637, allocations: 8 kB / 0.727 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.322e-05/1.637, allocations: 18.89 kB / 0.727 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02706/1.664, allocations: 13.49 MB / 0.7402 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/1.665, allocations: 4 kB / 0.7402 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003056/1.668, allocations: 0.7489 MB / 0.7409 GB, free: 125.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/1.67, allocations: 0.7967 MB / 0.7417 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003904/1.67, allocations: 83.98 kB / 0.7418 GB, free: 125 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008691/1.679, allocations: 8.852 MB / 0.7504 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/1.679, allocations: 4 kB / 0.7504 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/1.692, allocations: 9.487 MB / 0.7597 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002681/1.695, allocations: 1 MB / 0.7607 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/1.696, allocations: 71.98 kB / 0.7607 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00294/1.699, allocations: 231.7 kB / 0.761 GB, free: 105 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005429/1.699, allocations: 274.6 kB / 0.7612 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/1.7, allocations: 108 kB / 0.7613 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00459/1.704, allocations: 3.304 MB / 0.7646 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/1.704, allocations: 0 / 0.7646 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006881/1.711, allocations: 1.973 MB / 0.7665 GB, free: 99.35 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005428/1.712, allocations: 256.9 kB / 0.7667 GB, free: 99.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01006/1.722, allocations: 7.596 MB / 0.7742 GB, free: 91.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/1.722, allocations: 0 / 0.7742 GB, free: 91.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004063/1.726, allocations: 3.145 MB / 0.7772 GB, free: 88.28 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005335/1.731, allocations: 1.183 MB / 0.7784 GB, free: 87.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03098/1.762, allocations: 21.2 MB / 0.7991 GB, free: 65.84 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00735/1.769, allocations: 7.193 MB / 0.8061 GB, free: 58.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005761/1.775, allocations: 2.318 MB / 0.8084 GB, free: 56.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/1.776, allocations: 416.4 kB / 0.8088 GB, free: 55.87 MB / 0.5294 GB Notification: Performance of SimCode: time 1.243e-06/1.776, allocations: 0 / 0.8088 GB, free: 55.87 MB / 0.5294 GB Notification: Performance of Templates: time 0.3117/2.088, allocations: 66.29 MB / 0.8735 GB, free: 157.3 MB / 0.5294 GB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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: 9.392466066405177]