Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00802/0.00802, allocations: 108.3 kB / 21.97 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002098/0.002098, allocations: 220.3 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 230.6 MB / 259 MB, free: 8.02 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 64.97 kB / 379.9 MB, free: 2.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2437, allocations: 53.36 MB / 433.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04597/0.2897, allocations: 40.35 MB / 473.6 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02478/0.3145, allocations: 10.68 MB / 484.2 MB, free: 3.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01017/0.3246, allocations: 374 kB / 484.6 MB, free: 3.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02148/0.3461, allocations: 8.666 MB / 493.3 MB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01267/0.3588, allocations: 3.57 MB / 496.8 MB, free: 7.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007799/0.3666, allocations: 2.432 MB / 499.3 MB, free: 4.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01882/0.3854, allocations: 13.04 MB / 0.5003 GB, free: 7.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03314/0.4185, allocations: 17.37 MB / 0.5173 GB, free: 6.051 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0123/0.4308, allocations: 6.978 MB / 0.5241 GB, free: 15.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01425/0.4451, allocations: 7.931 MB / 0.5318 GB, free: 7.098 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005763/0.4509, allocations: 1.953 MB / 0.5337 GB, free: 5.145 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007942/0.4588, allocations: 2.378 MB / 0.5361 GB, free: 2.766 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4571/0.9159, allocations: 3.97 MB / 0.5399 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02103/0.9369, allocations: 7.564 MB / 0.5473 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03409/0.971, allocations: 25.97 MB / 0.5727 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.971, allocations: 0 / 0.5727 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.971, allocations: 3.938 kB / 0.5727 GB, free: 24.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009185/0.972, allocations: 3.344 kB / 0.5727 GB, free: 24.7 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.04628/1.018, allocations: 15.26 MB / 0.5876 GB, free: 14.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/1.018, allocations: 10.44 kB / 0.5876 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03262/1.051, allocations: 6.118 MB / 0.5936 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01701/1.068, allocations: 8.125 MB / 0.6015 GB, free: 7.105 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007192/1.069, allocations: 0.906 MB / 0.6024 GB, free: 6.473 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004905/1.074, allocations: 1.194 MB / 0.6036 GB, free: 5.289 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0546/1.128, allocations: 18.69 MB / 0.6218 GB, free: 2.543 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005591/1.129, allocations: 23.38 kB / 0.6218 GB, free: 2.523 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004645/1.133, allocations: 0.4908 MB / 0.6223 GB, free: 2.043 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007622/1.134, allocations: 0.646 MB / 0.6229 GB, free: 1.395 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04366/1.178, allocations: 16.8 MB / 0.6394 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1185/1.296, allocations: 57.25 MB / 0.6953 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01898/1.315, allocations: 10.37 MB / 0.7054 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006562/1.322, allocations: 3.406 MB / 0.7087 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01806/1.34, allocations: 8.541 MB / 0.7171 GB, free: 2.547 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.721e-05/1.34, allocations: 77.25 kB / 0.7171 GB, free: 2.461 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.34e-06/1.34, allocations: 4 kB / 0.7171 GB, free: 2.457 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04011/1.38, allocations: 17.28 MB / 0.734 GB, free: 1.207 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.49e-05/1.38, allocations: 94.47 kB / 0.7341 GB, free: 1.102 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008832/1.389, allocations: 5.038 MB / 0.739 GB, free: 12.07 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007588/1.39, allocations: 89.7 kB / 0.7391 GB, free: 11.98 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004431/1.394, allocations: 5.649 MB / 0.7446 GB, free: 6.316 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001933/1.396, allocations: 1.418 MB / 0.746 GB, free: 4.918 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002346/1.398, allocations: 1.331 MB / 0.7473 GB, free: 3.578 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001275/1.399, allocations: 301.1 kB / 0.7476 GB, free: 3.281 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004938/1.404, allocations: 2.914 MB / 0.7504 GB, free: 372 kB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2563/1.66, allocations: 5.875 MB / 0.7562 GB, free: 199.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/1.671, allocations: 9.461 MB / 0.7654 GB, free: 195.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001814/1.671, allocations: 29.47 kB / 0.7654 GB, free: 195.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01634/1.687, allocations: 9.87 MB / 0.7751 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.434e-05/1.687, allocations: 47.12 kB / 0.7751 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001496/1.687, allocations: 103.1 kB / 0.7752 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/1.69, allocations: 0.9344 MB / 0.7761 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005613/1.695, allocations: 1.592 MB / 0.7777 GB, free: 191.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009874/1.705, allocations: 9.887 MB / 0.7873 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005368/1.711, allocations: 407.4 kB / 0.7877 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009292/1.712, allocations: 357.6 kB / 0.7881 GB, free: 185.2 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.006589/1.718, allocations: 4.252 MB / 0.7922 GB, free: 183.2 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001171/1.719, allocations: 0.538 MB / 0.7927 GB, free: 183.2 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009773/1.729, allocations: 6.461 MB / 0.7991 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.259e-05/1.729, allocations: 44 kB / 0.7991 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/1.729, allocations: 11.94 kB / 0.7991 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.382e-05/1.729, allocations: 19.31 kB / 0.7991 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02285/1.752, allocations: 15.75 MB / 0.8145 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/1.752, allocations: 4 kB / 0.8145 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002923/1.755, allocations: 0.7535 MB / 0.8152 GB, free: 165.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/1.757, allocations: 0.7824 MB / 0.816 GB, free: 165 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002287/1.757, allocations: 91.67 kB / 0.8161 GB, free: 164.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00807/1.765, allocations: 9.05 MB / 0.8249 GB, free: 156.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/1.765, allocations: 7.969 kB / 0.8249 GB, free: 156.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/1.777, allocations: 9.52 MB / 0.8342 GB, free: 147.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002562/1.779, allocations: 1.037 MB / 0.8353 GB, free: 146.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008688/1.78, allocations: 71.09 kB / 0.8353 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002361/1.783, allocations: 219.8 kB / 0.8355 GB, free: 145.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005036/1.783, allocations: 278.5 kB / 0.8358 GB, free: 145.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002411/1.783, allocations: 124 kB / 0.8359 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004725/1.788, allocations: 3.363 MB / 0.8392 GB, free: 142.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.9e-07/1.788, allocations: 0 / 0.8392 GB, free: 142.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007147/1.795, allocations: 1.881 MB / 0.841 GB, free: 140.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.0008121/1.796, allocations: 262 kB / 0.8413 GB, free: 140 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009958/1.806, allocations: 7.217 MB / 0.8483 GB, free: 132.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/1.806, allocations: 0.8125 kB / 0.8483 GB, free: 132.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004181/1.81, allocations: 3.185 MB / 0.8514 GB, free: 129.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005123/1.815, allocations: 1.304 MB / 0.8527 GB, free: 128.3 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0304/1.846, allocations: 19.82 MB / 0.8721 GB, free: 108.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006496/1.852, allocations: 7.113 MB / 0.879 GB, free: 101.2 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/1.854, allocations: 487.3 kB / 0.8795 GB, free: 100.7 MB / 0.5763 GB Notification: Performance of SimCode: time 1.322e-06/1.854, allocations: 0 / 0.8795 GB, free: 100.7 MB / 0.5763 GB Notification: Performance of Templates: time 0.8666/2.721, allocations: 464.4 MB / 1.333 GB, free: 92.12 MB / 0.5919 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.13328124000691]