Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001615/0.001615, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 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.002003/0.002003, allocations: 211.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 51.91 kB / 378.3 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2704, allocations: 53.36 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04355/0.314, allocations: 34.38 MB / 466 MB, free: 4.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02534/0.3393, allocations: 10.37 MB / 476.4 MB, free: 9.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007919/0.3472, allocations: 366 kB / 476.7 MB, free: 9.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02258/0.3698, allocations: 8.028 MB / 484.8 MB, free: 1.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01602/0.3858, allocations: 3.508 MB / 488.3 MB, free: 13.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00946/0.3953, allocations: 2.341 MB / 490.6 MB, free: 11.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02034/0.4156, allocations: 13.04 MB / 0.4918 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03763/0.4533, allocations: 17.37 MB / 0.5088 GB, free: 12.91 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01386/0.4671, allocations: 6.99 MB / 0.5156 GB, free: 5.906 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01739/0.4845, allocations: 7.923 MB / 0.5234 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00672/0.4912, allocations: 1.949 MB / 0.5253 GB, free: 12.01 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008153/0.4994, allocations: 2.363 MB / 0.5276 GB, free: 9.645 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00759/0.507, allocations: 3.959 MB / 0.5314 GB, free: 5.676 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.5607/1.068, allocations: 5.909 MB / 0.5372 GB, free: 44.15 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03594/1.104, allocations: 26.07 MB / 0.5627 GB, free: 39.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/1.104, allocations: 0 / 0.5627 GB, free: 39.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.066e-06/1.104, allocations: 0 / 0.5627 GB, free: 39.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009213/1.105, allocations: 3.984 kB / 0.5627 GB, free: 39.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.05347/1.158, allocations: 15.25 MB / 0.5776 GB, free: 31.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/1.158, allocations: 11.62 kB / 0.5776 GB, free: 31.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0356/1.194, allocations: 6.117 MB / 0.5836 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02029/1.214, allocations: 8.099 MB / 0.5915 GB, free: 23.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007898/1.215, allocations: 0.9071 MB / 0.5923 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005288/1.22, allocations: 1.196 MB / 0.5935 GB, free: 22.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04813/1.268, allocations: 18.92 MB / 0.612 GB, free: 3.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005621/1.269, allocations: 23.89 kB / 0.612 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007665/1.276, allocations: 0.4905 MB / 0.6125 GB, free: 3.316 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007333/1.277, allocations: 0.6382 MB / 0.6131 GB, free: 2.676 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04843/1.326, allocations: 16.74 MB / 0.6295 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1221/1.448, allocations: 50.67 MB / 0.6789 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02041/1.468, allocations: 10.27 MB / 0.689 GB, free: 6.457 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00689/1.475, allocations: 3.4 MB / 0.6923 GB, free: 3.047 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02025/1.495, allocations: 7.675 MB / 0.6998 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.623e-05/1.495, allocations: 77.3 kB / 0.6999 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 9.307e-06/1.495, allocations: 3.984 kB / 0.6999 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04395/1.539, allocations: 17.24 MB / 0.7167 GB, free: 10.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.963e-05/1.539, allocations: 90.47 kB / 0.7168 GB, free: 10.05 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008579/1.548, allocations: 4.791 MB / 0.7215 GB, free: 5.258 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007854/1.549, allocations: 93.17 kB / 0.7216 GB, free: 5.164 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004713/1.553, allocations: 5.649 MB / 0.7271 GB, free: 15.5 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001954/1.555, allocations: 1.418 MB / 0.7285 GB, free: 14.1 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0024/1.558, allocations: 1.334 MB / 0.7298 GB, free: 12.75 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001422/1.558, allocations: 305.1 kB / 0.7301 GB, free: 12.45 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005736/1.564, allocations: 2.914 MB / 0.7329 GB, free: 9.535 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009698/1.573, allocations: 5.926 MB / 0.7387 GB, free: 2.242 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01547/1.589, allocations: 9.458 MB / 0.7479 GB, free: 7.766 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.589, allocations: 31.94 kB / 0.748 GB, free: 7.734 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.3114/1.9, allocations: 9.829 MB / 0.7576 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/1.9, allocations: 48.5 kB / 0.7576 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002113/1.901, allocations: 99.03 kB / 0.7577 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002787/1.903, allocations: 0.9406 MB / 0.7586 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006403/1.91, allocations: 1.589 MB / 0.7602 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/1.921, allocations: 9.673 MB / 0.7696 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005716/1.927, allocations: 407.7 kB / 0.77 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/1.928, allocations: 359.1 kB / 0.7703 GB, free: 194.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.008665/1.936, allocations: 4.245 MB / 0.7745 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/1.938, allocations: 0.5064 MB / 0.775 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009954/1.948, allocations: 6.432 MB / 0.7813 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/1.948, allocations: 42.94 kB / 0.7813 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/1.948, allocations: 11.72 kB / 0.7813 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-05/1.948, allocations: 20.67 kB / 0.7813 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02421/1.972, allocations: 13.3 MB / 0.7943 GB, free: 185.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/1.972, allocations: 7.438 kB / 0.7943 GB, free: 185.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00328/1.975, allocations: 0.7526 MB / 0.7951 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/1.978, allocations: 0.7778 MB / 0.7958 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004805/1.978, allocations: 94.89 kB / 0.7959 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008475/1.987, allocations: 8.842 MB / 0.8046 GB, free: 177.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/1.987, allocations: 6.531 kB / 0.8046 GB, free: 177.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01271/1.999, allocations: 9.493 MB / 0.8138 GB, free: 169.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003179/2.002, allocations: 0.9835 MB / 0.8148 GB, free: 169.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/2.003, allocations: 74.06 kB / 0.8149 GB, free: 169 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002602/2.006, allocations: 217.5 kB / 0.8151 GB, free: 168.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005426/2.007, allocations: 282.2 kB / 0.8153 GB, free: 168.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/2.007, allocations: 120.9 kB / 0.8155 GB, free: 168.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004552/2.011, allocations: 3.059 MB / 0.8184 GB, free: 166.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/2.011, allocations: 0 / 0.8184 GB, free: 166.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007791/2.019, allocations: 1.878 MB / 0.8203 GB, free: 164.2 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.0008402/2.02, allocations: 260.7 kB / 0.8205 GB, free: 164 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01094/2.031, allocations: 7.219 MB / 0.8276 GB, free: 157.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/2.031, allocations: 8.062 kB / 0.8276 GB, free: 157.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004743/2.036, allocations: 3.178 MB / 0.8307 GB, free: 153.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005476/2.041, allocations: 1.167 MB / 0.8318 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03158/2.073, allocations: 20.06 MB / 0.8514 GB, free: 132.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01131/2.084, allocations: 6.922 MB / 0.8582 GB, free: 125.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.008695/2.093, allocations: 2.119 MB / 0.8602 GB, free: 123.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001676/2.094, allocations: 403.3 kB / 0.8606 GB, free: 123.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.332e-06/2.094, allocations: 0 / 0.8606 GB, free: 123.1 MB / 0.5763 GB Notification: Performance of Templates: time 0.1404/2.235, allocations: 80.55 MB / 0.9393 GB, free: 43.51 MB / 0.5763 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 9.174010332208127]