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.001418/0.001418, allocations: 120.2 kB / 21.94 MB, free: 8 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.001741/0.001741, allocations: 204.7 kB / 25.23 MB, free: 3.551 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.468/1.468, allocations: 207.6 MB / 236 MB, free: 9.969 MB / 190.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.002076/0.002076, allocations: 54 kB / 348.5 MB, free: 9.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2928, allocations: 49.16 MB / 397.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0458/0.3386, allocations: 40.26 MB / 437.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02886/0.3675, allocations: 10.59 MB / 448.5 MB, free: 360 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01292/0.3804, allocations: 318.2 kB / 448.8 MB, free: 40 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02272/0.4031, allocations: 8.683 MB / 457.5 MB, free: 7.316 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01647/0.4196, allocations: 3.777 MB / 461.3 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009365/0.4289, allocations: 2.468 MB / 463.8 MB, free: 1.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02298/0.4519, allocations: 13.51 MB / 477.3 MB, free: 3.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04163/0.4935, allocations: 17.47 MB / 494.7 MB, free: 1.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0151/0.5087, allocations: 7.219 MB / 0.4902 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01745/0.5261, allocations: 8.164 MB / 0.4982 GB, free: 2.426 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0103/0.5364, allocations: 1.992 MB / 0.5001 GB, free: 444 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01183/0.5482, allocations: 2.398 MB / 0.5024 GB, free: 14.04 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007964/0.5562, allocations: 4.173 MB / 0.5065 GB, free: 9.852 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01755/0.5737, allocations: 7.836 MB / 0.5142 GB, free: 1.984 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04168/0.6154, allocations: 26.48 MB / 0.54 GB, free: 7.414 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/0.6154, allocations: 0 / 0.54 GB, free: 7.414 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.6154, allocations: 0 / 0.54 GB, free: 7.414 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001086/0.6165, allocations: 4 kB / 0.54 GB, free: 7.41 MB / 462.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.05381/0.6703, allocations: 15.82 MB / 0.5555 GB, free: 7.477 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/0.6704, allocations: 15.98 kB / 0.5555 GB, free: 7.461 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4453/1.116, allocations: 9.179 MB / 0.5645 GB, free: 131 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01932/1.135, allocations: 7.549 MB / 0.5718 GB, free: 128.3 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001402/1.136, allocations: 0.9467 MB / 0.5728 GB, free: 127.9 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00571/1.142, allocations: 1.247 MB / 0.574 GB, free: 127.5 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0561/1.198, allocations: 20.15 MB / 0.5937 GB, free: 118.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007396/1.199, allocations: 23.67 kB / 0.5937 GB, free: 118.7 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004985/1.204, allocations: 0.5141 MB / 0.5942 GB, free: 118.3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000783/1.205, allocations: 0.7324 MB / 0.5949 GB, free: 118.1 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03895/1.244, allocations: 18.98 MB / 0.6134 GB, free: 99.07 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1081/1.352, allocations: 60.57 MB / 0.6726 GB, free: 38.21 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02366/1.375, allocations: 14.87 MB / 0.6871 GB, free: 26.64 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0066/1.382, allocations: 3.742 MB / 0.6908 GB, free: 22.88 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02331/1.405, allocations: 10.95 MB / 0.7015 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/1.405, allocations: 73.31 kB / 0.7015 GB, free: 12.11 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 8.466e-06/1.405, allocations: 0 / 0.7015 GB, free: 12.11 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.04201/1.447, allocations: 17.89 MB / 0.719 GB, free: 10.21 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.26e-05/1.448, allocations: 94.45 kB / 0.7191 GB, free: 10.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0131/1.461, allocations: 5.467 MB / 0.7244 GB, free: 4.668 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00117/1.462, allocations: 89.7 kB / 0.7245 GB, free: 4.574 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00632/1.468, allocations: 6.093 MB / 0.7305 GB, free: 14.43 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002393/1.471, allocations: 1.441 MB / 0.7319 GB, free: 12.97 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004805/1.475, allocations: 1.513 MB / 0.7334 GB, free: 11.45 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001371/1.475, allocations: 305.1 kB / 0.7337 GB, free: 11.15 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006515/1.482, allocations: 3.083 MB / 0.7367 GB, free: 8.066 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/1.492, allocations: 6.755 MB / 0.7433 GB, free: 15.54 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01709/1.509, allocations: 10.59 MB / 0.7536 GB, free: 3.148 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001749/1.51, allocations: 36 kB / 0.7536 GB, free: 3.113 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02552/1.535, allocations: 10.8 MB / 0.7642 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002148/1.535, allocations: 60.06 kB / 0.7642 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002841/1.536, allocations: 131.9 kB / 0.7644 GB, free: 8.062 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002997/1.539, allocations: 0.9644 MB / 0.7653 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00748/1.546, allocations: 1.817 MB / 0.7671 GB, free: 5.266 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2802/1.826, allocations: 9.921 MB / 0.7768 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006899/1.833, allocations: 453 kB / 0.7772 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001769/1.835, allocations: 418.6 kB / 0.7776 GB, free: 163.8 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.01053/1.845, allocations: 4.45 MB / 0.782 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001936/1.847, allocations: 0.5725 MB / 0.7825 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01296/1.86, allocations: 6.492 MB / 0.7889 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.293e-05/1.86, allocations: 44.47 kB / 0.7889 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.449e-05/1.86, allocations: 7.812 kB / 0.7889 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.165e-05/1.86, allocations: 20.8 kB / 0.7889 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03431/1.895, allocations: 15.95 MB / 0.8045 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.199e-05/1.895, allocations: 3.938 kB / 0.8045 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003468/1.898, allocations: 0.7564 MB / 0.8052 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002093/1.9, allocations: 0.7915 MB / 0.806 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005304/1.901, allocations: 90.41 kB / 0.8061 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0087/1.91, allocations: 9.048 MB / 0.8149 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.91, allocations: 3.094 kB / 0.8149 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01376/1.923, allocations: 9.535 MB / 0.8243 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003662/1.927, allocations: 1.037 MB / 0.8253 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001442/1.928, allocations: 76.5 kB / 0.8253 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003157/1.932, allocations: 223.6 kB / 0.8256 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005821/1.932, allocations: 280.3 kB / 0.8258 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000246/1.932, allocations: 116.8 kB / 0.8259 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005662/1.938, allocations: 3.596 MB / 0.8294 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/1.938, allocations: 0 / 0.8294 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009109/1.947, allocations: 1.989 MB / 0.8314 GB, free: 140.9 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.001113/1.948, allocations: 257.8 kB / 0.8316 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0127/1.961, allocations: 7.59 MB / 0.839 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/1.961, allocations: 0 / 0.839 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005408/1.966, allocations: 3.165 MB / 0.8421 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008515/1.975, allocations: 1.304 MB / 0.8434 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04508/2.02, allocations: 20.97 MB / 0.8639 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01254/2.032, allocations: 7.364 MB / 0.8711 GB, free: 101.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00264/2.035, allocations: 0.4915 MB / 0.8716 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.343e-06/2.035, allocations: 0 / 0.8716 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.8974/2.933, allocations: 479 MB / 1.339 GB, free: 76.07 MB / 0.5607 GB " [Timeout remaining time 657] 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/jenkins1/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/jenkins1/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: 24.670394773129374]