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.001954/0.001954, allocations: 104.7 kB / 20.48 MB, free: 1.129 MB / 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.002253/0.002253, allocations: 193.7 kB / 23.76 MB, free: 4.336 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.425/1.425, allocations: 225.7 MB / 252.6 MB, free: 12.77 MB / 206.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 0.001602/0.001602, allocations: 51.92 kB / 371 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2345, allocations: 52.18 MB / 423.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04168/0.2762, allocations: 33.85 MB / 457.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02104/0.2972, allocations: 10.12 MB / 467.2 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005956/0.3032, allocations: 370 kB / 467.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01919/0.3224, allocations: 8.014 MB / 475.6 MB, free: 9.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.3338, allocations: 3.487 MB / 479.1 MB, free: 6.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007696/0.3415, allocations: 2.284 MB / 481.3 MB, free: 4.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02069/0.3622, allocations: 12.97 MB / 494.3 MB, free: 7.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03366/0.3958, allocations: 17.11 MB / 0.4994 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01404/0.4099, allocations: 6.978 MB / 0.5063 GB, free: 14.81 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01414/0.424, allocations: 7.427 MB / 0.5135 GB, free: 7.355 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005274/0.4293, allocations: 1.949 MB / 0.5154 GB, free: 5.406 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007198/0.4365, allocations: 2.324 MB / 0.5177 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00582/0.4423, allocations: 3.963 MB / 0.5216 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01237/0.4547, allocations: 5.903 MB / 0.5273 GB, free: 9.184 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4706/0.9253, allocations: 26.03 MB / 0.5527 GB, free: 43.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.9253, allocations: 0 / 0.5527 GB, free: 43.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.9253, allocations: 0 / 0.5527 GB, free: 43.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001014/0.9263, allocations: 2.625 kB / 0.5527 GB, free: 43.88 MB / 446.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.04988/0.9762, allocations: 15.2 MB / 0.5676 GB, free: 37.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.9762, allocations: 8.844 kB / 0.5676 GB, free: 37.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03297/1.009, allocations: 6.202 MB / 0.5736 GB, free: 34.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01591/1.025, allocations: 8.086 MB / 0.5815 GB, free: 30.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008094/1.026, allocations: 0.9033 MB / 0.5824 GB, free: 30.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00579/1.032, allocations: 1.195 MB / 0.5836 GB, free: 30.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04323/1.075, allocations: 18.88 MB / 0.602 GB, free: 13.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004613/1.075, allocations: 27.27 kB / 0.6021 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004109/1.08, allocations: 0.4958 MB / 0.6025 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005203/1.08, allocations: 0.6382 MB / 0.6032 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03576/1.116, allocations: 16.7 MB / 0.6195 GB, free: 11.83 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1078/1.224, allocations: 50.6 MB / 0.6689 GB, free: 9.066 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01953/1.243, allocations: 10.14 MB / 0.6788 GB, free: 0.5508 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00636/1.249, allocations: 3.372 MB / 0.6821 GB, free: 13.17 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01643/1.266, allocations: 7.593 MB / 0.6895 GB, free: 5.688 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.756e-05/1.266, allocations: 69.31 kB / 0.6896 GB, free: 5.609 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 6.842e-06/1.266, allocations: 0 / 0.6896 GB, free: 5.609 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03808/1.304, allocations: 17.2 MB / 0.7064 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.89e-05/1.304, allocations: 93.75 kB / 0.7065 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007813/1.312, allocations: 4.775 MB / 0.7111 GB, free: 15.56 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006339/1.313, allocations: 89.7 kB / 0.7112 GB, free: 15.47 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004539/1.317, allocations: 5.635 MB / 0.7167 GB, free: 9.82 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001746/1.319, allocations: 1.421 MB / 0.7181 GB, free: 8.418 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002214/1.321, allocations: 1.323 MB / 0.7194 GB, free: 7.086 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001414/1.321, allocations: 301.1 kB / 0.7197 GB, free: 6.789 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004965/1.326, allocations: 2.91 MB / 0.7225 GB, free: 3.875 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007854/1.334, allocations: 5.929 MB / 0.7283 GB, free: 12.58 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01436/1.348, allocations: 9.437 MB / 0.7375 GB, free: 2.117 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/1.349, allocations: 28 kB / 0.7375 GB, free: 2.09 MB / 0.5607 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01984/1.368, allocations: 9.819 MB / 0.7471 GB, free: 8.828 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.694e-05/1.368, allocations: 48 kB / 0.7472 GB, free: 8.781 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/1.369, allocations: 100 kB / 0.7473 GB, free: 8.684 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002987/1.372, allocations: 0.9399 MB / 0.7482 GB, free: 7.734 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006543/1.378, allocations: 1.588 MB / 0.7497 GB, free: 6.262 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2367/1.615, allocations: 9.678 MB / 0.7592 GB, free: 205.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005617/1.621, allocations: 408.7 kB / 0.7596 GB, free: 205.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005751/1.621, allocations: 354.3 kB / 0.7599 GB, free: 205.8 MB / 0.5763 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.00618/1.627, allocations: 4.242 MB / 0.7641 GB, free: 205.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/1.628, allocations: 0.5053 MB / 0.7646 GB, free: 205.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009574/1.638, allocations: 6.438 MB / 0.7708 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-05/1.638, allocations: 40.94 kB / 0.7709 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/1.638, allocations: 7.25 kB / 0.7709 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.513e-05/1.638, allocations: 21.23 kB / 0.7709 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0209/1.659, allocations: 13.25 MB / 0.7839 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/1.659, allocations: 3.875 kB / 0.7839 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003064/1.662, allocations: 0.7465 MB / 0.7846 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002056/1.664, allocations: 0.7889 MB / 0.7854 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002486/1.664, allocations: 88.59 kB / 0.7854 GB, free: 198.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008666/1.673, allocations: 8.845 MB / 0.7941 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.673, allocations: 3.875 kB / 0.7941 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01231/1.685, allocations: 9.463 MB / 0.8033 GB, free: 184.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002472/1.688, allocations: 0.9758 MB / 0.8043 GB, free: 184.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006953/1.688, allocations: 74.06 kB / 0.8043 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00223/1.691, allocations: 223.1 kB / 0.8046 GB, free: 183.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005547/1.691, allocations: 278.7 kB / 0.8048 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002303/1.691, allocations: 111.9 kB / 0.8049 GB, free: 183.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004147/1.696, allocations: 3.053 MB / 0.8079 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9.1e-08/1.696, allocations: 0 / 0.8079 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.005981/1.702, allocations: 1.867 MB / 0.8097 GB, free: 179.3 MB / 0.5763 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.0005591/1.702, allocations: 262.9 kB / 0.81 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01017/1.712, allocations: 7.207 MB / 0.817 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.712, allocations: 8 kB / 0.817 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004593/1.717, allocations: 3.172 MB / 0.8201 GB, free: 170 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006373/1.723, allocations: 1.154 MB / 0.8213 GB, free: 169 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03526/1.759, allocations: 20.1 MB / 0.8409 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009693/1.768, allocations: 6.921 MB / 0.8476 GB, free: 142.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006711/1.775, allocations: 2.107 MB / 0.8497 GB, free: 140.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/1.777, allocations: 388.4 kB / 0.8501 GB, free: 140.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.813e-06/1.777, allocations: 4 kB / 0.8501 GB, free: 140.1 MB / 0.5763 GB Notification: Performance of Templates: time 0.1165/1.893, allocations: 64.67 MB / 0.9132 GB, free: 76.38 MB / 0.5763 GB " [Timeout remaining time 658] 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.689303686842322]