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.001798/0.001798, allocations: 72.06 kB / 21.24 MB, free: 404 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.002072/0.002072, allocations: 160.2 kB / 24.49 MB, free: 3.461 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.404/1.404, allocations: 173.4 MB / 201 MB, free: 12.71 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.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 0.001532/0.001532, allocations: 46.61 kB / 319.5 MB, free: 3.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08654, allocations: 52.16 MB / 371.6 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04153/0.1281, allocations: 33.84 MB / 405.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.1504, allocations: 10.14 MB / 415.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007236/0.1577, allocations: 370 kB / 416 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02154/0.1792, allocations: 8.398 MB / 424.4 MB, free: 2.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.191, allocations: 3.484 MB / 427.8 MB, free: 15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007093/0.1981, allocations: 2.309 MB / 430.1 MB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01755/0.2156, allocations: 12.96 MB / 443.1 MB, free: 15.69 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02964/0.2453, allocations: 17.11 MB / 460.2 MB, free: 14.42 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01047/0.2557, allocations: 6.986 MB / 467.2 MB, free: 7.418 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2052/0.461, allocations: 7.419 MB / 474.6 MB, free: 24.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005037/0.466, allocations: 1.949 MB / 476.6 MB, free: 24.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007032/0.473, allocations: 2.321 MB / 478.9 MB, free: 24.34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005649/0.4787, allocations: 3.958 MB / 482.9 MB, free: 24.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01294/0.4916, allocations: 5.899 MB / 488.8 MB, free: 24.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02691/0.5185, allocations: 26.04 MB / 0.5027 GB, free: 16.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.5185, allocations: 0 / 0.5027 GB, free: 16.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5185, allocations: 0 / 0.5027 GB, free: 16.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006914/0.5192, allocations: 0 / 0.5027 GB, free: 16.55 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04288/0.5621, allocations: 15.2 MB / 0.5176 GB, free: 6.859 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.5621, allocations: 9.078 kB / 0.5176 GB, free: 6.859 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03362/0.5958, allocations: 6.219 MB / 0.5237 GB, free: 4.012 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01619/0.612, allocations: 8.083 MB / 0.5315 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001015/0.613, allocations: 0.9021 MB / 0.5324 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004869/0.6178, allocations: 1.197 MB / 0.5336 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05066/0.6685, allocations: 18.88 MB / 0.552 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004073/0.6689, allocations: 19.91 kB / 0.5521 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003267/0.6722, allocations: 0.4893 MB / 0.5525 GB, free: 9.469 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007278/0.6729, allocations: 0.6382 MB / 0.5532 GB, free: 8.828 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04106/0.714, allocations: 16.71 MB / 0.5695 GB, free: 8.105 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1033/0.8173, allocations: 50.59 MB / 0.6189 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02028/0.8376, allocations: 10.15 MB / 0.6288 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006946/0.8445, allocations: 3.37 MB / 0.6321 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0194/0.8639, allocations: 7.588 MB / 0.6395 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.683e-05/0.864, allocations: 80.5 kB / 0.6396 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 7.103e-06/0.864, allocations: 0 / 0.6396 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04308/0.9071, allocations: 17.19 MB / 0.6564 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/0.9072, allocations: 94.41 kB / 0.6565 GB, free: 0.582 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009603/0.9168, allocations: 4.774 MB / 0.6611 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000699/0.9175, allocations: 97.7 kB / 0.6612 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00451/0.922, allocations: 5.633 MB / 0.6667 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001803/0.9238, allocations: 1.418 MB / 0.6681 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003228/0.927, allocations: 1.331 MB / 0.6694 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.9272, allocations: 301.1 kB / 0.6697 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005401/0.9326, allocations: 2.902 MB / 0.6725 GB, free: 112 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2033/1.136, allocations: 5.923 MB / 0.6783 GB, free: 187.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/1.146, allocations: 9.438 MB / 0.6875 GB, free: 183.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001653/1.146, allocations: 28.53 kB / 0.6875 GB, free: 183.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01579/1.162, allocations: 9.812 MB / 0.6971 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.645e-05/1.162, allocations: 47.55 kB / 0.6972 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001715/1.162, allocations: 103.1 kB / 0.6973 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002227/1.165, allocations: 0.9371 MB / 0.6982 GB, free: 180.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005285/1.17, allocations: 1.583 MB / 0.6997 GB, free: 180.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009761/1.18, allocations: 9.691 MB / 0.7092 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005034/1.185, allocations: 406.8 kB / 0.7096 GB, free: 173.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007493/1.185, allocations: 356 kB / 0.7099 GB, free: 173.6 MB / 0.5606 GB 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.005866/1.191, allocations: 4.25 MB / 0.7141 GB, free: 171.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000919/1.192, allocations: 0.5062 MB / 0.7146 GB, free: 171.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00939/1.202, allocations: 6.421 MB / 0.7208 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.246e-05/1.202, allocations: 39.62 kB / 0.7209 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/1.202, allocations: 14.22 kB / 0.7209 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.394e-05/1.202, allocations: 23.02 kB / 0.7209 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0201/1.222, allocations: 13.27 MB / 0.7339 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/1.222, allocations: 0 / 0.7339 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003079/1.225, allocations: 0.7481 MB / 0.7346 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/1.227, allocations: 0.7854 MB / 0.7354 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002422/1.227, allocations: 87.55 kB / 0.7354 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008292/1.235, allocations: 8.83 MB / 0.7441 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.235, allocations: 8.234 kB / 0.7441 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/1.247, allocations: 9.464 MB / 0.7533 GB, free: 140.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002289/1.249, allocations: 0.984 MB / 0.7543 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006374/1.25, allocations: 75.28 kB / 0.7544 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002271/1.252, allocations: 214.9 kB / 0.7546 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005056/1.253, allocations: 281 kB / 0.7548 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002492/1.253, allocations: 111.5 kB / 0.7549 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004076/1.257, allocations: 3.052 MB / 0.7579 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.257, allocations: 8 kB / 0.7579 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005943/1.263, allocations: 1.867 MB / 0.7597 GB, free: 134.2 MB / 0.5606 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%), (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.0004993/1.264, allocations: 258 kB / 0.76 GB, free: 134 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009221/1.273, allocations: 7.198 MB / 0.767 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.273, allocations: 4 kB / 0.767 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00393/1.277, allocations: 3.17 MB / 0.7701 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/1.281, allocations: 1.161 MB / 0.7713 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02519/1.307, allocations: 20.1 MB / 0.7909 GB, free: 102.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005723/1.312, allocations: 6.925 MB / 0.7976 GB, free: 95.26 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004914/1.317, allocations: 2.099 MB / 0.7997 GB, free: 93.15 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.318, allocations: 388.4 kB / 0.8001 GB, free: 92.77 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/1.318, allocations: 0 / 0.8001 GB, free: 92.77 MB / 0.5606 GB Notification: Performance of Templates: time 0.103/1.421, allocations: 64.67 MB / 0.8632 GB, free: 29.02 MB / 0.5606 GB " [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 -s ida -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/jenkins1/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/jenkins1/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.062354542082176]