Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.00195/0.00195, allocations: 84.48 kB / 20.95 MB, free: 476 kB / 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.002355/0.002355, allocations: 149.9 kB / 24.25 MB, free: 3.527 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.45/1.45, allocations: 173.3 MB / 200.8 MB, free: 12.75 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 267.4 MB, free: 10.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.406e-05, allocations: 2.312 kB / 267.4 MB, free: 10.16 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04307/0.0431, allocations: 33.89 MB / 301.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.1389/0.182, allocations: 10.17 MB / 311.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007693/0.1897, allocations: 366.5 kB / 311.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01844/0.2081, allocations: 8.425 MB / 320.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01027/0.2184, allocations: 3.562 MB / 323.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006133/0.2245, allocations: 2.302 MB / 326.1 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01385/0.2384, allocations: 13.42 MB / 339.5 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02857/0.267, allocations: 17.17 MB / 356.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02066/0.2876, allocations: 10.32 MB / 367 MB, free: 356 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01238/0.3, allocations: 6.672 MB / 373.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004444/0.3044, allocations: 1.949 MB / 375.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006884/0.3113, allocations: 2.33 MB / 377.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004994/0.3163, allocations: 4.041 MB / 382 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0123/0.3286, allocations: 5.073 MB / 387 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03438/0.363, allocations: 26.23 MB / 413.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.363, allocations: 2.812 kB / 413.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.363, allocations: 4 kB / 413.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006086/0.3636, allocations: 0 / 413.3 MB, free: 3.605 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04458/0.4082, allocations: 15.07 MB / 428.3 MB, free: 4.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.4082, allocations: 11.55 kB / 428.4 MB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03945/0.4477, allocations: 7.952 MB / 436.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01878/0.4664, allocations: 8.42 MB / 444.7 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00106/0.4675, allocations: 0.9099 MB / 445.6 MB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004435/0.4719, allocations: 1.202 MB / 446.8 MB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2691/0.741, allocations: 18.89 MB / 465.7 MB, free: 126.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003964/0.7414, allocations: 19.47 kB / 465.7 MB, free: 126.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002509/0.7439, allocations: 0.4888 MB / 466.2 MB, free: 126.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006738/0.7446, allocations: 0.6403 MB / 466.9 MB, free: 126.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03336/0.778, allocations: 16.71 MB / 483.6 MB, free: 120.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07532/0.8533, allocations: 51.94 MB / 0.523 GB, free: 73.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01601/0.8693, allocations: 10.21 MB / 0.5329 GB, free: 64.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004985/0.8743, allocations: 3.381 MB / 0.5362 GB, free: 61.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/0.8877, allocations: 7.637 MB / 0.5437 GB, free: 54.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.8878, allocations: 73.25 kB / 0.5438 GB, free: 53.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=349): time 7.113e-06/0.8878, allocations: 3.219 kB / 0.5438 GB, free: 53.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=389): time 0.03244/0.9202, allocations: 17.32 MB / 0.5607 GB, free: 37.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.9203, allocations: 98.47 kB / 0.5608 GB, free: 36.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005891/0.9262, allocations: 4.776 MB / 0.5654 GB, free: 32.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006777/0.9269, allocations: 93.7 kB / 0.5655 GB, free: 32.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002233/0.9291, allocations: 5.617 MB / 0.571 GB, free: 26.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001263/0.9304, allocations: 1.401 MB / 0.5724 GB, free: 25.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001775/0.9321, allocations: 1.311 MB / 0.5737 GB, free: 23.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 4.552e-05/0.9322, allocations: 301.1 kB / 0.5739 GB, free: 23.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003749/0.9359, allocations: 2.906 MB / 0.5768 GB, free: 20.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004801/0.9407, allocations: 5.925 MB / 0.5826 GB, free: 13.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009308/0.95, allocations: 9.441 MB / 0.5918 GB, free: 2.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-05/0.9501, allocations: 28 kB / 0.5918 GB, free: 2.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01944/0.9696, allocations: 10.15 MB / 0.6017 GB, free: 8.312 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-05/0.9697, allocations: 44.38 kB / 0.6018 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/0.9698, allocations: 107.9 kB / 0.6019 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003688/0.9735, allocations: 1.113 MB / 0.603 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006666/0.9802, allocations: 1.587 MB / 0.6045 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.146/1.126, allocations: 9.715 MB / 0.614 GB, free: 116.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005302/1.131, allocations: 407.8 kB / 0.6144 GB, free: 116.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/1.133, allocations: 351.3 kB / 0.6147 GB, free: 116.5 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008019/1.141, allocations: 4.246 MB / 0.6189 GB, free: 116 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001594/1.142, allocations: 0.6205 MB / 0.6195 GB, free: 115.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/1.153, allocations: 6.434 MB / 0.6258 GB, free: 113.4 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/1.153, allocations: 38.75 kB / 0.6258 GB, free: 113.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/1.153, allocations: 7.844 kB / 0.6258 GB, free: 113.4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.859e-05/1.153, allocations: 19.78 kB / 0.6258 GB, free: 113.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/1.177, allocations: 13.27 MB / 0.6388 GB, free: 108.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/1.177, allocations: 3 kB / 0.6388 GB, free: 108.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003313/1.18, allocations: 0.7487 MB / 0.6395 GB, free: 108 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002923/1.183, allocations: 0.9517 MB / 0.6404 GB, free: 107.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004944/1.184, allocations: 85.91 kB / 0.6405 GB, free: 107.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008755/1.192, allocations: 8.899 MB / 0.6492 GB, free: 101.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.192, allocations: 3.969 kB / 0.6492 GB, free: 101.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/1.206, allocations: 9.586 MB / 0.6586 GB, free: 97.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002414/1.208, allocations: 0.9786 MB / 0.6595 GB, free: 97.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008356/1.209, allocations: 75.8 kB / 0.6596 GB, free: 97.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002378/1.211, allocations: 221.3 kB / 0.6598 GB, free: 97.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007365/1.212, allocations: 276.8 kB / 0.6601 GB, free: 97.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003124/1.212, allocations: 116.6 kB / 0.6602 GB, free: 97.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004636/1.217, allocations: 3.047 MB / 0.6632 GB, free: 95.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/1.217, allocations: 0 / 0.6632 GB, free: 95.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.007153/1.224, allocations: 1.867 MB / 0.665 GB, free: 93.66 MB / 414.1 MB 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%), (8,38,59.4%), (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.0007615/1.225, allocations: 260 kB / 0.6652 GB, free: 93.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01048/1.235, allocations: 7.221 MB / 0.6723 GB, free: 87.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.235, allocations: 0 / 0.6723 GB, free: 87.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004607/1.24, allocations: 3.176 MB / 0.6754 GB, free: 84.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005455/1.245, allocations: 1.186 MB / 0.6765 GB, free: 83.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02977/1.275, allocations: 20.28 MB / 0.6964 GB, free: 62.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006813/1.282, allocations: 6.925 MB / 0.7031 GB, free: 55.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.005228/1.287, allocations: 2.107 MB / 0.7052 GB, free: 53.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001304/1.288, allocations: 388.4 kB / 0.7055 GB, free: 53.46 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/1.288, allocations: 0 / 0.7055 GB, free: 53.46 MB / 414.1 MB Notification: Performance of Templates: time 0.111/1.399, allocations: 64.41 MB / 0.7684 GB, free: 5.953 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 8.418152019381523]