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.001845/0.001845, allocations: 73.8 kB / 21.24 MB, free: 0.5547 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.002341/0.002341, allocations: 160.3 kB / 24.5 MB, free: 3.715 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.455/1.455, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.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.001533/0.001533, allocations: 51.45 kB / 325.6 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08824, allocations: 53.35 MB / 379 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04182/0.1301, allocations: 34.38 MB / 413.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02154/0.1516, allocations: 10.35 MB / 423.7 MB, free: 2.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006171/0.1578, allocations: 373.9 kB / 424.1 MB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02077/0.1785, allocations: 8.418 MB / 432.5 MB, free: 9.871 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.1897, allocations: 3.487 MB / 436 MB, free: 6.367 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00717/0.1969, allocations: 2.334 MB / 438.3 MB, free: 4.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01807/0.2149, allocations: 13.05 MB / 451.4 MB, free: 6.941 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02982/0.2448, allocations: 17.12 MB / 468.5 MB, free: 5.66 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1977/0.4425, allocations: 6.989 MB / 475.5 MB, free: 18.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01229/0.4547, allocations: 7.53 MB / 483 MB, free: 18.05 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005981/0.4607, allocations: 1.95 MB / 484.9 MB, free: 18.05 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008075/0.4688, allocations: 2.343 MB / 487.3 MB, free: 18.05 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006001/0.4748, allocations: 3.967 MB / 491.3 MB, free: 17.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01045/0.4852, allocations: 5.905 MB / 497.2 MB, free: 16.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02301/0.5083, allocations: 26.07 MB / 0.511 GB, free: 5.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.5083, allocations: 0 / 0.511 GB, free: 5.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5083, allocations: 0 / 0.511 GB, free: 5.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006393/0.5089, allocations: 0 / 0.511 GB, free: 5.23 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.04071/0.5496, allocations: 15.25 MB / 0.5259 GB, free: 11.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.5497, allocations: 6.656 kB / 0.5259 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03331/0.583, allocations: 6.133 MB / 0.5319 GB, free: 7.688 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01872/0.6017, allocations: 8.101 MB / 0.5398 GB, free: 15.87 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009989/0.6027, allocations: 0.9049 MB / 0.5407 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004191/0.6069, allocations: 1.194 MB / 0.5418 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04712/0.654, allocations: 18.92 MB / 0.5603 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005343/0.6545, allocations: 23.27 kB / 0.5603 GB, free: 10.74 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003335/0.6579, allocations: 0.4967 MB / 0.5608 GB, free: 10.26 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007558/0.6586, allocations: 0.6396 MB / 0.5614 GB, free: 9.617 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03837/0.697, allocations: 16.74 MB / 0.5778 GB, free: 8.863 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1033/0.8003, allocations: 50.69 MB / 0.6273 GB, free: 6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0203/0.8206, allocations: 10.27 MB / 0.6373 GB, free: 13.39 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006535/0.8271, allocations: 3.404 MB / 0.6406 GB, free: 9.977 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01703/0.8441, allocations: 7.668 MB / 0.6481 GB, free: 2.391 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.105e-05/0.8442, allocations: 73.06 kB / 0.6482 GB, free: 2.312 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 6.111e-06/0.8442, allocations: 0 / 0.6482 GB, free: 2.312 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04016/0.8844, allocations: 17.24 MB / 0.665 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/0.8845, allocations: 90.47 kB / 0.6651 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009298/0.8937, allocations: 4.795 MB / 0.6698 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002963/0.894, allocations: 89.7 kB / 0.6699 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004824/0.8989, allocations: 5.655 MB / 0.6754 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001563/0.9004, allocations: 1.421 MB / 0.6768 GB, free: 5.027 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002593/0.903, allocations: 1.334 MB / 0.6781 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.9032, allocations: 301.1 kB / 0.6784 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005335/0.9085, allocations: 2.914 MB / 0.6812 GB, free: 480 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1926/1.101, allocations: 5.924 MB / 0.687 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/1.112, allocations: 9.458 MB / 0.6963 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001342/1.112, allocations: 29.31 kB / 0.6963 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01695/1.129, allocations: 9.834 MB / 0.7059 GB, free: 189.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.862e-05/1.129, allocations: 47.78 kB / 0.7059 GB, free: 189.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001722/1.129, allocations: 97.59 kB / 0.706 GB, free: 189.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/1.131, allocations: 0.9391 MB / 0.7069 GB, free: 188.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005321/1.136, allocations: 1.593 MB / 0.7085 GB, free: 188.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009679/1.146, allocations: 9.671 MB / 0.7179 GB, free: 182.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005156/1.151, allocations: 413.2 kB / 0.7183 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008733/1.152, allocations: 354.2 kB / 0.7187 GB, free: 182.2 MB / 0.5762 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.006056/1.158, allocations: 4.253 MB / 0.7228 GB, free: 180.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001014/1.159, allocations: 0.508 MB / 0.7233 GB, free: 180.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009185/1.168, allocations: 6.435 MB / 0.7296 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.738e-05/1.168, allocations: 37.19 kB / 0.7296 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/1.168, allocations: 9 kB / 0.7297 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.468e-05/1.169, allocations: 19.92 kB / 0.7297 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02123/1.19, allocations: 13.3 MB / 0.7427 GB, free: 167.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/1.19, allocations: 7.797 kB / 0.7427 GB, free: 167.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003104/1.193, allocations: 0.7438 MB / 0.7434 GB, free: 167 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001994/1.195, allocations: 0.789 MB / 0.7442 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002503/1.195, allocations: 87.11 kB / 0.7443 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008437/1.204, allocations: 8.846 MB / 0.7529 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.204, allocations: 4 kB / 0.7529 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.217, allocations: 9.492 MB / 0.7622 GB, free: 149.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002539/1.219, allocations: 0.9838 MB / 0.7631 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/1.22, allocations: 77.92 kB / 0.7632 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/1.223, allocations: 215.8 kB / 0.7634 GB, free: 149 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005681/1.224, allocations: 281.1 kB / 0.7637 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003221/1.224, allocations: 119.9 kB / 0.7638 GB, free: 148.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005575/1.23, allocations: 3.06 MB / 0.7668 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/1.23, allocations: 0 / 0.7668 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007618/1.237, allocations: 1.883 MB / 0.7686 GB, free: 143.7 MB / 0.5762 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.0008273/1.238, allocations: 255.7 kB / 0.7689 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01129/1.249, allocations: 7.222 MB / 0.7759 GB, free: 136.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.249, allocations: 4.375 kB / 0.7759 GB, free: 136.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005228/1.255, allocations: 3.174 MB / 0.779 GB, free: 133 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006887/1.261, allocations: 1.17 MB / 0.7802 GB, free: 131.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0472/1.309, allocations: 20.07 MB / 0.7998 GB, free: 111.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009575/1.318, allocations: 6.918 MB / 0.8065 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005687/1.324, allocations: 2.115 MB / 0.8086 GB, free: 102.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/1.325, allocations: 404.4 kB / 0.809 GB, free: 102.3 MB / 0.5762 GB Notification: Performance of SimCode: time 9.42e-07/1.325, allocations: 4 kB / 0.809 GB, free: 102.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.1064/1.432, allocations: 65.46 MB / 0.8729 GB, free: 37.73 MB / 0.5762 GB " [Timeout remaining time 659] 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 -s ida -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/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_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.08377222402487]